ServiceNow
Creates an incident report with a customised or default template on new/updated events.
Fields:
Instance name (required)
Client ID (required)
Client secret (required)
Refresh token (required)
Steps:
Signin/signup to servicenow - ServiceNow Developers
Select the ‘developer programme’ app on first signin
Standup a developer instance
Save the instance admin username & password.
Install & enable the oauth plugin for instance - Product Documentation | ServiceNow
All > system applications > all available applications > all
install & enable oauth 2 plugin
Create an endpoint for clients to access the instance - Product Documentation | ServiceNow
All > System OAuth > Application Registry
Create a new registry
Select `Create an OAuth API endpoint for external clients` when prompted
Give the registry a name & set the redirect url to “https://<your_instance_name>.service-now.com/login.do“
Add an available auth scope / or create a new auth scope for this registry.
COPY THE CLIENT ID & CLIENT SECRET.
Get the refresh token
A useful post - ServiceNow Rest API OAuth returns not Authorized error
In postman send a POST request with the following details
Request type = POST
body = x-www-form-urlencoded
grant_type = password
client_id = from oauth registry above
client_secret = from oauth registry above
username = admin username
password = admin password
Any alerts to the servicenow alert type can be found in the following path in servicenow.
All > service desk > incidents
Last updated