Sync Workday OAuth tokens every 230 minutes

Recipe ToolsMarketingDeveloper ToolAPI Integration

What it does

Every 230 minutes, this automation retrieves all refresh tokens from the lookup table and fetches a new access token from Workday for each one. It repeats the update until success and logs the outcome so tokens stay current.

Who it's for

IT teams who need Workday OAuth tokens refreshed automatically without manual intervention.

How teams use this

Keep Workday connected without expiration

Run token refresh on schedule so integrations stay authenticated and Rest calls do not fail due to expired credentials. The IT team never has to manually refresh tokens.

Monitor token refresh health across teams

Add a notification step after the loop completes so the IT team gets an alert if any token refresh fails. Only the notification channel and recipient need to be set.

Refresh tokens for multiple Workday tenants

Expand the lookup table to include tenant identifiers and filter the loop by tenant so each environment refreshes its own tokens independently. The core flow stays the same.

Alert Finance when token updates fail

Set up a conditional notification to Finance teams when a token refresh fails so they know integrations may be at risk. Include only the failure condition and Finance channel details.

How it works

  1. Run every 230 minutes. The scheduler starts this automation on a fixed interval so tokens stay current without someone having to run it manually.
  2. Retrieve all refresh tokens. Fetch every entry from the Workday OAuth Refresh Tokens lookup table so each token can be refreshed in the next steps.
  3. Call the token fetch function. For each refresh token, call the Workato Recipe Function to retrieve the current value and check if the fetch was successful before moving to the next token.
  4. Get the access token from Workday. When the fetch succeeds, make a Rest call to Workday to get a new access token using the refresh token from the previous step.
  5. Update the access token property. Call the Workato Recipe Function again to store the new access token in the environment property so Workday stays authenticated for the next cycle.