How to Connect to Third party Application from ServiceNow if they provide token for rest.

kk9
Tera Contributor

From ServiceNow, we want to send data to a third-party application. They have provided us with the Token to connect to their system. Could you please help How to set up a Rest API to connect and send data to the third-party applications? 

Thanks in advance. 

4 REPLIES 4

Sukhbir Singh2
Giga Guru

Hi

The question is not clear. Are you saying they have provided you OAuth credentials?

If yes, you need to set up an Application registry, OAuth provider account in your system.

Click on application registry and then connect to third party OAuth Provider

find_real_file.png

 

-- Then input the client id, client secret, token url and grant type as provided by the vendor.

find_real_file.png

 

-- This will generate a default OAuth entry profile visible under OAuth Entry Profile. If the application has provided you a scope, thenn you will have to add it under OAuth Entity scopes.

find_real_file.png

 

-- The go to your rest message definition and pick Authentication as Oauth 2.0 and in the OAuth profile pick the OAuth entity profile created while you created the OAuth provider under application registry.

 

find_real_file.png

 

You should be able to test the token by clicking the to get OAuth Token related link.

 

Please hit correct/helpful, if it helped.

 

 

Sukhbir Singh2
Giga Guru

Hi kk

Following up on my response.

If it answers your question, please mark correct/helpful.

Thanks

Sukhbir Singh

Hi Sukhbir,
Thank you for your detailed information. 


The third-party application has provided us the API key to send data from ServiceNow to their system. How can I set up with API key to establish the connection? 

Thanks,
KK

Hi Kk

There are two parts, for establishing the connection, you will either need username/password or oauth information depending upon how the application authenticates.

But if its a different api key, then it probably needs to be sent as part of the header of the rest message as name/find_real_file.png

 

 Thanks