Skip to main content
Skip table of contents

REST-Verbindungseinstellungen

[connection]

Wird die Sendeart REST ausgewählt, müssen in der Konfigurationsdatei die entsprechenden Verbindungseinstellungen konfiguriert werden. Passwörter muss hierzu verschlüsselt in die Konfigurationsdatei abgelegt werden (siehe Passwort verschlüsseln).

ServiceNow

Beispiel

XML
<configuration version="1.2.0">
  <connections>

	...

    <!--
    REST/ServiceNow connection settings
    -->
    <connection name="REST" provider="ServiceNow">
      <login type="basic">
        <userName>service-now-login</userName>
        <!-- 
        Encrypted password
        Note:
        - To encrypt a password, start the application with the start parameter /Admin 
        -->
        <password>Q+vej2lB+f33b2E/wk3NzEcHf9A1FEVdJSYwIowYc7M=</password>
      </login>
      <!--
      Proxy
      mode = [Provided, Disabled, AutoDetect, UseDefault]
      -->
      <!--
      <proxy mode="Provided">
        <address>proxy-url</address>
        <credentials>
          <userName>userName</userName>
          <password>Q+vej2lB+f33b2E/wk3NzEcHf9A1FEVdJSYwIowYc7M=</password>
        </credentials>
      </proxy>
      -->
      <incidentCreationRequest>
        <url>service-now-incident-creation-api-url</url>
        <body>
          {
          "u_caller":"{%Local.UserName%}",
          "u_hostname":"{%Local.ComputerName%}",
          "u_short_description":"{%Input.subject%}",
          "u_description":"{%Input.description%}",
          "u_location":"{%ActiveDirectory.User.physicalDeliveryOfficeName%}",
          "u_phone_number":"{%ActiveDirectory.User.telephoneNumber%}"
          }
        </body>
      </incidentCreationRequest>
      <attachmentUploadRequest>
        <url>service-now-attachment-creation-api-url</url>
        <tableName>u_dz_incident_ibi_helpme</tableName>
      </attachmentUploadRequest>
    </connection>

	...

  </connections>
</configuration>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.