Sync Workday worker org chart to Snowflake
Recipe ToolsWorkatoDatabaseMarketingDeveloper ToolData ParserUtilities
What it does
When a new event arrives for the worker org chart, this automation queries Workday worker data from Snowflake and builds a hierarchy. The org chart is exported as a CSV file to Snowflake Secondary so teams have the latest structure.
Who it's for
HR teams who need an up-to-date worker hierarchy in Snowflake without manual updates.
How teams use this
Keep org chart current in Snowflake
Sync the latest Workday worker hierarchy to Snowflake Secondary every time a change occurs, so reports and dashboards always reflect the current structure.
Feed org chart to downstream systems
Export the CSV file to a shared location so other tools can consume the hierarchy without querying Workday directly. Add a storage endpoint to push the file automatically.
Audit manager-report relationships
Use the exported hierarchy to verify that all workers are assigned to the correct manager and that no orphaned records exist.
How it works
- Listen for worker org chart event. A new message arrives in the GW Events Topic for the worker org chart, triggering this automation in real time.
- Query Workday worker records. Select rows from the Workday worker table in Snowflake to retrieve all active worker data needed for the hierarchy.
- Build parent-child hierarchy. Run a recursive JavaScript function to organize workers by their manager relationships, creating the org chart structure.
- Parse hierarchy into structured data. Convert the JavaScript output into structured format so it can be exported and stored in the secondary database.
- Export org chart as CSV file. Write the parsed hierarchy to a CSV file in Snowflake Secondary so the org chart is available for downstream systems.