Sync name-ID pairs to a lookup table
Recipe ToolsDeveloper ToolAPI Integration
What it does
When a function call arrives, this automation fetches current name-ID data via a web request and updates a lookup table. It processes each item in batch, clears stale entries, and returns the result so downstream workflows have current reference data.
Who it's for
Operations teams who need to keep name-ID metadata synchronized across systems without manual updates.
How teams use this
Keep reference data current across workflows
Sync name-ID pairs to a lookup table on a schedule or on demand so other workflows can reference accurate metadata without querying the source system each time.
Reduce latency in downstream lookups
Store name-ID metadata in a lookup table instead of fetching it live, so workflows that need to match names to IDs run faster and put less load on the source system.
Include custom fields in the reference table
Extend the web request to fetch additional attributes such as owner or status, then set those fields when adding entries to the lookup table so more metadata is available.
Notify teams when sync completes
Route the sync result to a Slack channel or email so the team knows when name-ID metadata was last refreshed and whether any errors occurred during the update.
How it works
- Receive the function call. A real-time function call initiates this automation with a request to sync name-ID data.
- Fetch data via web request. Get the current name-ID pairs from the source system through a web request so the lookup table can be refreshed.
- Clear the lookup table. Truncate all entries from the lookup table so stale records do not remain after the sync completes.
- Add each item to the table. For each item in the fetched data, add an entry to the lookup table with the name and ID pair so it is available for reference.
- Return the sync result. Return the result to confirm the lookup table was updated. If an error occurs, the automation does not retry.