Messages
A Message contains all the configuration required to send, receive, and process a request.
Messages are central to the functionality of Unifi. A Message brings together the disparate parts necessary for the configuration required in order to send, receive and process a request.
Message Fields
The Message fields to be configured for the Message record are as follows:
Configuration Fields
The Configuration fields to be configured for the Message record are as follows:
*Direction choices: Inbound, outbound, or bidirectional.
Trigger Fields
The Trigger fields to be configured for the Message record are as follows:
*Send to self:
By default, if an integration updates a target record it will not trigger messages to be sent back to itself, preventing feedback loops.
*Advanced condition:
This field is made visible when the 'Use advanced condition' field is set to true.
*Attachment added:
This field is made visible when the 'Send attachments' field is set to true.
Bond Fields
The Bond fields to be configured for the Message record are as follows:
*Bond ownership choices: Ignore, Must own, Must not own.
Scripts Fields
The Scripts fields to be configured for the Message record are as follows:
*Extract attachments script
This field is made visible when the Extract attachments
box is checked. The script must always return a string and if an object is used it needs to be JSON encoded (i.e. JSON.stringify()
). The following is an example:
CDATA
It is possible to use CDATA within an XML message, but because of the way ServiceNow handles XML it can be a little bit tricky. When ServiceNow see’s the CDATA tag, it actually processes it and the tag ends up being removed in the final. We need to use a little trick allow us to actually get the CDATA in the final result.
Last updated