Configure ServiceNow integration options
Perform the following procedure to configure your ServiceNow integration options.
Avant de commencer
Role required: Scan Engine Admin (sn_se.scan_engine_admin).
Procédure
ServiceNow integration script leading practices
The following leading practices are guidelines for creating ServiceNow integration scripts.
- First, check the predefined variable isSourceto ensure that the script executes within the Source environment. Then check the predefined variable isDestination to ensure that the script is being executed in the Destination instance (usually Production).
- The predefined variable payload is an object that can be used to store variables so that they are available in the Destination instance. You should load the payload with data when the script is executing on the Source instance, and extract the payload data when the script is executing on the Destination instance.
- Use Violation in the script only when it is executing in the Source instance.
- Use grTaskin the script only when it is executing in the Destination instance.
- Use isSource in the script only when it is executing in the Source instance.
- Use isDestination in the script only when it is executing in the Destination instance.
- The payload object can be used regardless of the environment.
The predefined variables available for ServiceNow integrations are:
| isSource | True when on the Source instance (Development). |
| isDestination | True when on the Destination instance (Production). |
| payload | The user-defined variable that passes information between the instances. |
| grFinding | The glide record of the finding that sends the request, on the Defined instance in Source only. |
| grTask | The glide record being created on the Destination instance. |