ServiceNow Connector > Introduction to ServiceNow Connector > Testing the connection

Testing the connection

To verify if you can connect to ServiceNow, open any REST or SOAP client and test the connection.
It is recommended that you use the following SOAP URL and test the REST, JSON, JSONv2, or SOAP endpoints:
You must use the users credentials that has the SynQ_User_Role, or the name that you provided for the role.

Verify the connection status

To verify the connection status, you can call the REST API from any REST client.
Before making a call to the API, make sure that you have set up the user, group, and role:
Purpose : Testing Connection with ServiceNow
URL :https://<instance>
Authentication: Basic
If you set the appropriate roles, you will get a response similar to in the following image:
If you do not get the expected results, verify the users credentials and ServiceNow ACLs.

Verify the credentials

To verify if the ACL and user settings are correct, call the REST API from a REST client.
The following image shows an example of a GET request validation from a REST Client:
To create a successful connection with Data Integration, verify the credentials and ACLs with the following API:
API URL :https://<instance>
The following image shows an example of a GET request validation from a REST Client:

Test the APIs

Test the APIs for metadata information and if you can read from or write data from ServiceNow.
Metadata information
Test the following APIs if you can access the metadata:
Read API
Test the SOAP and REST APIs to read from the ServiceNow tables or views.
Use the REST Client
You can test the ACL and user-role setup using the REST clients. To test using a REST client, you require a valid REST API URL, the suitable methods, valid parameters, and authentication. For example, call a REST API to get data from a ServiceNow table. Use the following details to make a REST call:
Authentication : Basic (Requires username /password of user who is having SynQ_User_Role)
Method : Get
URL : valid api url
For more information about the REST API URLs and parameters, see the following website: