Connect ServiceNow to Anzenna
This guide walks you through setting up an OAuth application in ServiceNow and connecting it to Anzenna. The integration enables Anzenna to access your ServiceNow service catalog and catalog item requests.
Prerequisites
- ServiceNow administrator access
- Access to the Anzenna platform
- Ability to run terminal commands to generate an OAuth access token
Step-by-Step Instructions
Part 1: Initiate the Connection in Anzenna
- Sign in to Anzenna.
- Click on Configurations.
- Click on Connect Apps.
- Click on Connect to ServiceNow.
- You will be prompted to provide a Base URL and Access Token. Keep this dialog open while you complete the ServiceNow setup steps below.
Part 2: Create an OAuth App in ServiceNow
- In ServiceNow, search for Application Registry and click on it.
- Click New.
- Click on Create an OAuth API endpoint for external clients.
- Type Anzenna in the Name field.
- Type 259200000 in the Access Token Lifespan field, then click Submit. This sets the token to expire after ~3000 days, avoiding the need to provide credentials for token refresh.
- Go back to the Application Registry and click the app you just created to retrieve the client secret.
- Copy the Client ID and Client Secret. The client secret is visible when you click the lock button.
Part 3: Generate an Access Token via Terminal
Open a terminal and run the following curl command, substituting your client ID, client secret, ServiceNow username, password, and instance name:
curl -d "grant_type=password" --data-urlencode "client_id=<client_id>" --data-urlencode "client_secret=<client_secret>" --data-urlencode "username=<username>" --data-urlencode "password=<password>" -X POST https://<instance_name>.service-now.com/oauth_token.do
The response will include an access_token field. Copy that value.
Part 4: Complete the Connection in Anzenna
- Return to Anzenna and enter your instance name as the Base URL in the format:
https://<instance_name>.service-now.com/
- Paste the access token into the second field.
- Click Save.
Part 5: Configure the Integration
- Once the connection is set up (indicated by a green light), you will be prompted with a configuration dialog.
- Choose the service catalog to be fetched.
- Select the catalog item requests to be included.
- Click Save.
ServiceNow is now connected to Anzenna. The integration will begin syncing your service catalog and catalog item requests.