Sync Workday worker report to PostgreSQL on schedule
UtilitiesMarketingHRDeveloper
What it does
When the scheduled interval arrives, this automation retrieves the worker expense report from Workday using Reports as a Service. It parses the data, filters for workers with an expense report attached, and loads them into PostgreSQL.
Who it's for
Data and analytics teams who maintain a data warehouse from Workday.
How teams use this
Refresh the data warehouse nightly
Change the interval to run once per night instead of every 5 minutes so the database reflects the latest Workday data without constant writes.
Include only active employees in the load
Add a condition to filter the worker list so only active employees are loaded into PostgreSQL, excluding terminated or inactive records.
Sync to a different database schema
Point the automation to a different PostgreSQL schema or table name so multiple teams can maintain separate copies of the worker data.
Add email to the worker record
Include the email field from Workday in the parsed data so the PostgreSQL table has contact information for each worker record.
How it works
- Run on a 5 minute interval. The automation starts every 5 minutes so Clock triggers a check for new worker data in Workday.
- Retrieve worker expense report from Workday. Call the Workday Reports as a Service endpoint to fetch the worker expense report with employee information and expense report status.
- Parse the response into an array. Convert the Workday report into an array using Json Parser so each worker record can be processed individually in the next step.
- Filter workers with an expense report. Check each worker to see if an expense report is attached, and keep only those records for the database load.
- Load filtered workers into PostgreSQL. Insert or update the filtered worker records into the PostgreSQL table so the data warehouse stays current with Workday.