Create repeat helper list on a schedule
Recipe ToolsMarketingWorkatoDeveloper ToolAPI Integration
What it does
When a specified schedule runs every 5 minutes, this automation clears the lookup table and rebuilds it by querying an HTTP endpoint. It populates the lookup table with child items from each result so the data stays current.
Who it's for
Operations teams who need to maintain a lookup table with fresh hierarchical data on a regular cadence.
Apps used
How teams use this
Keep a lookup table in sync
Refresh hierarchical data every 5 minutes so the lookup table always reflects the current state of the source system without requiring manual intervention.
Support nested data structures
Query an endpoint that returns parent and child items, then populate the lookup table with both levels so downstream workflows can reference the full hierarchy.
Adjust the refresh interval
Change the Clock schedule from every 5 minutes to a different cadence, such as hourly or daily, to match your data freshness requirements.
Add filtering to the query
Include a condition in the HTTP request to filter results by status or category before adding entries to the lookup table, so only relevant items are stored.
How it works
- Run on a specified schedule. The automation starts every 5 minutes on the Clock schedule to refresh the helper list and keep the lookup table current.
- Clear the lookup table. Truncate all entries from the Lookup Table so old data does not mix with the new results from the HTTP query.
- Query the HTTP endpoint. Send a request via HTTP using Rest to fetch the repeat helper list and iterate through each item in the response data.
- Add child items to the table. For each child in the HTTP response, add an entry to the Lookup Table so all hierarchical data is available downstream.