Salesforce service now integration problem with refresh the OAuth 2.0 token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 01:17 AM
Hi Experts,
I want to get all the accounts from our SalesForce to Servicenow.
For that I saw this video on how to set up the OAuth 2.0 between the two.
Here is a Screen shot of the setting:
SalesForce side:
Service Now side:
The rest api that I use to get the account is this:
https://xxxxxxx.lightning.force.com/services/data/v54.0/query/?q=SELECT+Id+,+Name+from+Account
To get the OAuth token for the first time I pressed on the UI Action "Get OAuth Token" and I was able to get the token and the payload of the account.
I created a Job that will fetch the accounts every week.
The problem is that the access token is expired and the only way that I found to get a new one is to go back to the rest api message and press again on the UI Action "Get OAuth Token".
Anyone can help? Is there a way to get the access token automatically? Maybe my setting is incorrect.
Any help will be highly appreciated.
Thanks,
Lior Grinberg
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 12:20 PM
Hi I have same issue did you find a way to fix?