Route function calls based on resource type

Recipe ToolsDeveloper ToolAPI Integration

What it does

When someone makes a function call, this automation checks the resource type and routes to the correct action. Variables are set and updated based on conditions so the right data flows through.

Who it's for

Engineering teams who need to handle function calls with conditional logic without building separate workflows.

How teams use this

Route API calls by resource type

Receive function calls with different resource types and send each to the correct endpoint with the right variables. The lookup table handles all routing logic so new types can be added without changing this automation.

Enrich calls with translated codes

Add a lookup table that maps resource types to translation codes and onset dates. Each function call is enriched with these values before being sent downstream.

Monitor conditional branches for errors

Set up error monitoring on each conditional path so failures in one branch do not stop the others. Errors are caught and logged separately by resource type.

How it works

  1. Receive a function call. A function call arrives in real time with resource type and display information that determines which path to take next.
  2. Look up the resource type. Search the lookup table for the resource type to find the matching translation code and onset date for the variables.
  3. Send data to the target system. Post the tokenID, translation, code, and onset date to the destination endpoint based on the resource type matched in the lookup.