REST connection settings
[connection]
If the REST transmission mode is selected, the respective connection settings must be configured in the configuration file. Passwords must be encrypted and stored in the configuration file (see Encrypt SMTP password).
ServiceNow
Example
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>