sendAssignedToServiceNowIncident
A Workflow Engine function that sends an assignment request to related ServiceNow incidents. You can initiate this function from the UI client tools installed with the ServiceNow integration or through Alert Actions/Situation Delta workflows.
This function is available as a feature of the Add-ons v2.3 download and later.
This function is available for alert and Situation workflows.
Back to Workflow Engine Functions Reference.
Arguments
Workflow Engine function sendAssignedToServiceNowIncident
takes the following arguments:
Name | Required | Type | Description |
---|---|---|---|
| yes | string | Same as in UI |
| no | string | Same as in UI |
| no | string | Same as in UI |
| no | object | Same as in UI |
Example
The following example demonstrates typical use of Workflow Engine function sendAssignedToServiceNowIncident
.
In this case, the related ServiceNow incidents are assigned to the Situation Moogsoft moderator if a user match is found; otherwise, the incident is not updated. The sample workflow is initiated when the Situation is owned in the Moogsoft Onprem UI by the Situation Delta workflow of the same name.
Sample Workflow - Assign ServiceNow Incident (Situation Integration WFE)
Action | Description |
---|---|
Entry filter | Empty (can be added) as initiated from Client Tool or other WFE |
DELAY | 0 second (set as needed) |
Get or check correlation info ( | Run action to check for related ServiceNow incidents serviceName: ServiceNowMgmt contextName (optional): |
Assign incident ( | serviceName: ServiceNowMgmt instanceName: moderatorName: arguments: |
The workflow takes input values from workflowContext (set in the corresponding workflow in the Situation Actions WFE which initiates this request) and, in this case, issues a request to ServiceNow to assign the incident to the user that matches the Moogsoft Situation moderator based on email or username (as configured in the ServiceNow Management integration).
Note
A similar function is provided for alerts in the Alert Actions and Alert Integration WFE and can be initiated on alert ownership.