Need help? Contact us:
...
The ServiceNow adapter is designed to provide a template for getting started with ServiceNow integrations, includingAPI integrations. It leverages the SERVICENOW Library to:
Authenticating Authenticate with the ServiceNow API via OAuth2.0 (JWT).
Creating Create and retrieving retrieve Incident table records in ServiceNow.
This component can be customized and adapted according to your workflow needs. For example, it could be adapted as a Notifications component that integrates Iguana notifications with an existing support workflow. The ServiceNow Rest API Explorer is useful for reviewing the available API endpoints.
...
Expand | ||
---|---|---|
| ||
Expand | ||
| ||
|
The SERVICENOW Library:
Expand | ||
---|---|---|
| ||
Sets up the ServiceNow Adapter framework, adding the method modules to a metatable and storing the configurations from the custom fields in a table to call the API. |
Expand | ||
---|---|---|
| ||
SERVICENOWcustom takes in any API requests and parameters to make the API call and return the response.
|
Expand | ||
---|---|---|
| ||
The SERVICENOWauth function builds and makes the HTTP POST token request to obtain the access token required for any resource requests against the FHIR Server. A separate SERVICENOWcreateJWT function creates the JSON Header and Payload components of the JWT and calls SERVICENOWjwt to sign and return the JWT required for the token request. If the token requests is successful (HTTP 200 response), the token and token expiry returned are stored in the adapter object (key and key_expiry) and saved in an encrypted file via SERVICENOWencrypt. |
Expand | ||
---|---|---|
| ||
SERVICENOWencrypt provides localized https://interfaceware.atlassian.net/wiki/x/EQCeqg functionality via save and load functions that encrypt and decrypt the provided API token and expiry time in an external file. This allows the token to be reused for subsequent API calls. |
Expand | ||
---|---|---|
| ||
SERVICENOWjwt provides localized OAUTH Library functionality. It takes the provided JWT header, JWT payload, signing algorithm, and private key to generate and sign the JWT token. |
Expand | ||
---|---|---|
| ||
SERVICENOWcreateTbRecord prepares the arguments and calls SERVICENOWcustom to create an incident ticket in ServiceNow via HTTP POST request. |
SERVICENOWgetTbRecord prepares the arguments and calls SERVICENOWcustom to retrieve an incident ticket in ServiceNow via HTTP GET request. |