- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 06:00 AM
Hi,
We have implemented Salesforce CRM integration in our instance based on the docs: https://docs.servicenow.com/bundle/rome-it-asset-management/page/product/software-asset-management2/concept/integrate-with-salesforce-crm.html.
We have set the default grant type as 'Resource owner Password credentials' as credentials were shared by the Salesforce team. As specified in the docs link, we were able to click on the 'Get OAuth token' link and retrieve the access token using the username and password+security_token combo. Salesforce team has set the security token lifespan to 6 months.
The job ran successfully that day, however, in the next schedule (the next day), it failed with the error: Response Received: {"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}.
We tried the below options to fix this:
1. Increased access token lifespan in application registry to 6 months
2. Increased the expiry date in OAuth credentials to 6 months
However, all of the above options didn't work and we had to click on the 'Get OAuth token' link again and had to re-enter the same credentials and only then the job worked.
This is of course, not an ideal way to setup the integration.
Is there a way to fix this issue? Any help would be appreciated.
Regards,
Niharika Raj
Solved! Go to Solution.
- Labels:
-
SaaS License Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 03:39 AM
Hello Patrick,
Thanks for the reply. I know this is a very late update, but I just wanted to help anyone who was facing the same issue.
We requested the Salesforce team to reset the credentials, updated the grant type to 'Authorization code' and tried again.
This worked for us and we didn't encounter the session timeout issue.
Thanks!
Niharika Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 01:03 AM
Thank you.
I appreciate that you found a little time to answer.
Have a nice day
/Petr