How to Connect to Third party Application from ServiceNow if they provide token for rest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 12:51 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 05:58 PM
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
-- Then input the client id, client secret, token url and grant type as provided by the vendor.
-- 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.
-- 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.
You should be able to test the token by clicking the to get OAuth Token related link.
Please hit correct/helpful, if it helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 11:48 AM
Hi kk
Following up on my response.
If it answers your question, please mark correct/helpful.
Thanks
Sukhbir Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 11:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 12:10 PM
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/
Thanks