Getting Started with ServiceNow
Prerequisites
- A ServiceNow instance. You can create an account at ServiceNow.
- Your instance URL, for example
https://mycompany.service-now.com. - A ServiceNow user name and password for Engini to sign in with. We recommend a dedicated user marked Web Service Access Only (All > User Administration > Users), so it can sign in through API connections only. Engini can read and change only what this user is allowed to access in ServiceNow.
- The role
snc_basic_auth_api_accessfor that user. Your instance only accepts user name and password sign-in from API users that have this role, so without it every call fails with “User is not authenticated”. On a personal developer instance, even the admin user needs it. To add it, go to All > User Administration > Users, open the user, then Roles > Edit and add the role.
Connecting Engini to ServiceNow
- Enter your Engini account at https://app.engini.io.
-
Navigate to the Connections page by clicking on Connections in the left sidebar or by clicking here.

-
Click on the “New Integration” option located at the top bar.

-
Choose the ServiceNow option from the available applications.

-
Enter the following details in the “New Integration” form and press Save:
1. Connection Name - Enter a name that helps identify the ServiceNow connection. 2. Instance URL - Enter the address of your ServiceNow instance: your instance name followed by
.service-now.com, for examplehttps://dev12345.service-now.com. Don’t add a path after it. 3. Username - Enter the user name of the ServiceNow user Engini will sign in as. 4. Password - Enter the password of that ServiceNow user. 5. Save - Click Save to create the connection.
Triggers
All of the triggers below check ServiceNow on a schedule. Each check looks for changes since the workflow’s last run, and all the records found in one check arrive together in a single workflow run, as lists. Note: Each check also looks back one minute before the previous run, so that nothing is missed between two checks. As a result, a record that changes close to a check can be delivered by two consecutive checks, so it can reach your workflow twice. If that matters for your workflow, compare the record’s Sys Id against records you already handled.Check for New or Updated Records
Starts the workflow when records in the selected table are created or updated. To watch incidents, choose the Object Type incident.
- Object Type - Select the object type (the ServiceNow table) to watch, for example incident. It only selects which table the trigger checks; the rest of the trigger is set with the schedule and the conditions below.
- Starting (UTC) - Select the start date and time for the scheduled trigger.
- Recur every - Choose the time interval for triggering and checking records. The minimum time interval is 15 minutes.
- Add time frame - You can specify a time frame during which the trigger will operate.
- Add Conditions - Click Add Conditions to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Check for New Records
Starts the workflow when new records are created in the selected table.
- Object Type - Select the object type (the ServiceNow table) to watch, for example incident. It only selects which table the trigger checks; the rest of the trigger is set with the schedule and the conditions below.
- Starting (UTC) - Select the start date and time for the scheduled trigger.
- Recur every - Choose the time interval for triggering and checking records. The minimum time interval is 15 minutes.
- Add time frame - You can specify a time frame during which the trigger will operate.
- Add Conditions - Click Add Conditions to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Check for New Comments and Work Notes
Starts the workflow when new comments or work notes are added to ServiceNow records.
- Starting (UTC) - Select the start date and time for the scheduled trigger.
- Recur every - Choose the time interval for triggering and checking comments and work notes. The minimum time interval is 15 minutes.
- Add time frame - You can specify a time frame during which the trigger will operate.
- Add Conditions - Click Add Conditions to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Actions
Create Record
Creates a new record in a ServiceNow table.
- Object Type - Select the object type (the ServiceNow table) to create the record in, for example incident. Choose it first: the fields of the selected object are then available behind Add Field.
- Add Field - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, click here.
Delete a Record
Deletes a record from a ServiceNow table.
- Object Type - Select the object type (the ServiceNow table) the record belongs to, for example incident. It only selects the object the action works on.
- Record Id - Enter the unique id (Sys Id) of the record to delete, pick it from the suggestions for the selected table, or map the Sys Id from a previous step. The box shows the hint The record’s unique id.
Get Record
Retrieves a single record from a ServiceNow table.
- Object Type - Select the object type (the ServiceNow table) the record belongs to, for example incident. It only selects the object the action works on; the Record Id field below it appears once you have chosen one.
- Record Id - Enter the record’s unique id (its Sys Id), pick the record from the suggestions, or map the Sys Id from a previous step. The box shows the hint The record’s unique id.
- Add Filter - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
true, false or all: true returns display values (for example a user’s name) instead of internal values, false returns the internal values, and all returns both.
Get Records
Retrieves records from a ServiceNow table. This is the action Engini suggests when you start with Getting Started: it lists the latest records of the incident table, five records, newest first. Start with it to see what ServiceNow returns, then build on its results in the next steps.
- Object Type - Select the object type (the ServiceNow table) to read from, for example incident. It only selects the object the action works on.
- Add Filter - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
- Top N - You can set the maximum number of records Engini will return for the object you chose (default = all records).
- Offset - The offset parameter allows you to skip a certain number of records from the beginning of the result set (default = 0 records).
- Query - A ServiceNow encoded query that selects the records to return, for example
active=true^priority=1. The box shows the example e.g. active=true. - Sysparm Display Value - Enter
true,falseorall.truereturns display values (for example a user’s name) instead of internal values,falsereturns the internal values, andallreturns both. - Sysparm Exclude Reference Link - Enter
trueto leave the links to referenced records out of the results. - Sysparm Fields - Type the names of the columns to return for each record, separated by commas, for example
number,short_description. The box shows the hint Comma separated field names, and it also suggests the columns of the table. Leave it out to return all columns.
Search Records
Finds the records in a ServiceNow table whose text fields contain a word or phrase.
- Object Type - Select the object type (the ServiceNow table) to search in, for example incident. It only selects the object the action works on.
- Search Text - Enter the word or phrase to look for, for example
printer not working. The box shows the example e.g. printer not working. Engini returns the records whose text fields contain it. - Add Filter - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
- Top N - You can set the maximum number of records Engini will return (default = all records).
- Offset - The offset parameter allows you to skip a certain number of records from the beginning of the result set (default = 0 records).
number,short_description. The box shows the example e.g. number,short_description. Leave it out to return all columns.
ServiceNow searches the table’s text index, so a record created a few seconds ago can take a few minutes to appear in the results. A table that has no text index returns no records.
Update a Record
Updates fields of an existing ServiceNow record.
- Object Type - Select the object type (the ServiceNow table) the record belongs to, for example incident. Choose it first: the fields of the selected object are then available behind Add Field.
- Record Id - Enter the unique id (Sys Id) of the record to update, pick it from the suggestions for the selected table, or map the Sys Id from a previous step. The box shows the hint The record’s unique id.
- Add Field - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, click here.
Send API Request
This activity allows you to send a custom API request directly to ServiceNow’s API.
- Base Url - The root URL of the ServiceNow API. It is filled in from your ServiceNow connection and can’t be edited here.
- Relative url - You can specify additional path segments or parameters that need to be added to the end of the Base Url. This allows you to customize the specific request you want to perform.
- Method - Select the HTTP method (e.g., Get, Post, Put, Delete, Patch). The default is POST.
- Body Type - Defines the format of the data in the body of your request. The default, application/json, means the body contains a JSON-formatted payload.
- application/json – Sends the request body in JSON format. Commonly used by REST APIs.
- custom – Allows you to define a custom body format by manually setting the Content-Type header. Add a
Content-Typerow in Add Headers with the media type you need (for exampleapplication/xml). With any other Body Type, a Content-Type you type in Add Headers is not sent; Engini sets it from the Body Type, and the run history shows it underheadersnotsent. - application/x-www-form-urlencoded – Sends the body as URL-encoded key-value pairs, commonly used in form submissions.
- file – Sends a file as the request body.
- multipart/form-data – Sends form data that may include both text fields and files.
- text/html – Sends the request body as HTML content.
- text/plain – Sends the request body as plain text.
- text/xml – Sends the request body in XML format.
- Body - Contains any data that is being sent to the server.
- Add Headers - Additional metadata about the request, such as the type of data Engini can accept, the length of the request body, and authentication information.
- Add Queries - The query refers to the parameters or data that are included in the URL of an HTTP request to provide additional information or instructions to the server.