Configurations to use Workday REST API
Configure your ServiceNow instance to perform actions that use the Workday REST API.
Before you begin
- Request an Integration Hub subscription.
- Activate Workday HR spoke.
- From Workday, obtain these values and record them for later use. These values are
need to register your client:
- Client ID
- Client Secret
- Workday REST API Endpoint
- Token Endpoint
- Authorization Endpoint
- Role required: admin
About this task
Workday REST and Report-as-a-Service (RAAS) API works with OAuth 2.0 to authorize access to resources in your Workday tenant. To use OAuth 2.0, you must register your client in the tenant, using the Register API Client task.
- Get My Reporting Structure
- Look up Object Custom Fields
- Update Object Custom Fields
- Look up Payslip
- Look up Total Rewards Using Report
- Look up Custom Reports
- Look up Inbox Items
- Look up Merit And Benefit Plan Details Of An Employee
- Look up Holiday Calendars Reference WID Of An Employee
- Look up Schedule Calendars Reference WID Of An Employee
- Look up Holiday Calendars Of An Employee
- Look up using WQL Stream
Register Workday HR as an OAuth provider
Register the Workday HR instance as the OAuth provider so that the ServiceNow instance can request OAuth 2.0 tokens.
Before you begin
Role required: admin
Procedure
Generate token URL for Workday HR spoke
Register API client in your Workday account and generate a token URL for Workday HR spoke.
Before you begin
Role required: admin
Procedure
Result
Copy and store the generated Token Endpoint value for configuring system property.
Option 1: Configuration to use Workday HR REST API with a template
Configure your ServiceNow instance to perform actions that use the Workday HR REST API using an OAuth authorization template.
Before you begin
Role required: admin
Configure a connection for Workday HR REST API
Add and configure a Workday HR REST API connection to authenticate ServiceNow requests in Workday HR spoke.
Before you begin
- Role required: admin
- Register Workday HR as an OAuth provider
Procedure
Result
The spoke connection is configured and ready to be used.
Option 2: Configuration to use Workday HR REST API without a Template
Configure your ServiceNow instance to perform actions that use the Workday HR REST API by manually creating connection and credential records.
Before you begin
Role required: admin
Create a credential record for the Workday HR spoke
Create a credential record for the Workday HR instance. The Workday HR spoke connection and credential alias uses these credentials to authorize actions.
Before you begin
Role required: admin.
Procedure
Create a connection record for the Workday HR spoke
Create a connection record for your Workday HR instance. The Workday HR spoke connection and credential aliases use these connections to perform actions in Workday HR.
Before you begin
Role required: admin.