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.

Configure your ServiceNow instance to use the Workday REST API if you need to use these REST-based spoke actions:
  • 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
Note: These configurations are needed to use the REST-based spoke actions.

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

  1. Navigate to All > System OAuth > Application Registry.
  2. Click New.
    The system displays this message: What kind of OAuth application?.
  3. Select Connect to a third party OAuth Provider.
  4. On the form, fill these values.
  5. Right-click the form header, and click Save.
    An OAuth entity profile is created.

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

  1. Navigate to All > Connections & Credentials > Credentials.
  2. Click New.

    The system displays this message: What type of Credentials would you like to create?

  3. Select OAuth 2.0 Credentials.
  4. On the form, fill these values.
    Table 2. OAuth 2.0 Credentials form
    Field Description
    Name Name to uniquely identify the record. For example, Workday HR Cred.
    Active Option to actively use the credential record.
    OAuth Entity Profile OAuth entity profile created during the registration of Workday HR as an OAuth provider. For example, OAuth Profile.
  5. Right-click the form header and click Submit.
  6. To generate the OAuth token, click the Get OAuth Token related link.

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.

Procedure

  1. Navigate to All > Connections & Credentials > Connections & Credentials Aliases.
  2. Open the alias record, WorkdayHR.
  3. From the Connections tab, click New.
  4. On the form, fill these fields.
    Note: Ensure that you create the connection record in the Workday HR Spoke application.
  5. In the Attributes tab, fill in these values.
    Field Value
    Tenant Name Tenant name of your Workday application.
    Version v1
  6. Click Submit.