Workday And ServiceNow Integration: OAuth Access or Refresh tokens are not available

manish kale
Tera Guru

Hello Developers,
We are trying to integrate Workday and ServiceNow to get the users/workers' data from from workday and then map it into the ServiceNow user table using the REST API. We are trying to build the connection using OAuth 2.0. Consequently, we have configured the following things as listed below:
1. Credentials: Type - OAuth 2.0
2. Application Registration:

3. OAuth Entity Profile: Grant Type - Authoriztion Code

 

So we have configured above things and when we view the credentials record we are getting the below error:

manishkale_0-1700817402161.png

 

And if we click on the realted link "Get OAuth Token" we are redirected to a new page where we get the below error:

manishkale_1-1700817460420.png

If anyone can let us know why we are getting these two errors please let us know. Your help will be much appreciated.
 
Best Regards,
Manish.
1 ACCEPTED SOLUTION

Kit Cheong
Giga Guru

When you click "Get OAuth Token" a popup should appear with Workday login screen.
Log in to Workday using the "API client" credentials created in workday for ServiceNow.
You're then taken to a screen with an Allow and Deny button. Click Allow.

 

Ensure the API client configuration in workday has the redirect URL: https://[your insance].service-now.com/oauth_redirect.do

 

If you're not getting the Workday login screen when clicking "Get OAuth Token", open the Application Registry [oauth_entity] record in ServiceNow, add this param' to the Authorisation URL: ?redirect=n
E.g. https://x.myworkday.com/[your tennant]/authorize?redirect=n

 

If none of this works try logging into workday on a new tab using the "API client" credentials, then click "Get OAuth Token" in the ServiceNow tab.

View solution in original post

13 REPLIES 13

Kit Cheong
Giga Guru

When you click "Get OAuth Token" a popup should appear with Workday login screen.
Log in to Workday using the "API client" credentials created in workday for ServiceNow.
You're then taken to a screen with an Allow and Deny button. Click Allow.

 

Ensure the API client configuration in workday has the redirect URL: https://[your insance].service-now.com/oauth_redirect.do

 

If you're not getting the Workday login screen when clicking "Get OAuth Token", open the Application Registry [oauth_entity] record in ServiceNow, add this param' to the Authorisation URL: ?redirect=n
E.g. https://x.myworkday.com/[your tennant]/authorize?redirect=n

 

If none of this works try logging into workday on a new tab using the "API client" credentials, then click "Get OAuth Token" in the ServiceNow tab.

Hello @Kit Cheong 

It Worked!!!🎉
Thank you so much for the reply. After adding the attribute we were able to get the Workday login screen. Thank you Sir.

Hello @Kit Cheong

Login with "API client" credentials. Does this mean using client ID and secret for Login in Workday or is it generally integration user-created in Workday whose user name and password are required for login?

@manish kale @Kit Cheong 

 

Kit and Manish, can you please confirm what do you mean by the API Client Credentials to login into Workday? Is it the Client ID/Secret or details (Username and password) of ISU created in Workday?