sendThreadEntryToServiceNowIncident
A Workflow Engine function that sends an incident work note to ServiceNow when a collaboration entry is posted in a Moogsoft Situation with related incidents.
This function is available as a feature of the Add-ons v2.3 download and later.
This function is available for Situation workflows only.
Back to Workflow Engine Functions Reference.
Arguments
Workflow Engine function sendThreadEntryToServiceNowIncident
takes the following arguments:
Name | Required | Type | Description |
---|---|---|---|
instance | yes | string | Same as in UI |
Example
The following example demonstrates typical use of Workflow Engine function sendThreadEntryToServiceNowIncident
. In this case, the the workflow adds a work note to related ServiceNow incidents using the collaboration post text
entered in the Situation.
Sample Workflow - Add note to ServiceNow Incident (Situation Integration WFE)
Action | Description |
---|---|
Entry filter | Empty (can be added) as initiated from Client Tool or other WFE |
DELAY | 0 seconds (set as needed) |
Check/get for correlation info ( | Check for related ServiceNow incidents and if any exist set the correlation info workflow context item serviceName: ServiceNowMgmt contextName (Optional): |
Add work note to Incident ( | Send the note instance : |
The workflow takes input values from workflowContext (set in the corresponding workflow in the Situation Delta WFE which initiates this request) and, in this case, issues a request to ServiceNow to add a work note to the incident.