Sync ELT control table results with query conditions

Recipe ToolsData ParserMarketingUtilitiesDatabase

What it does

When someone calls this automation with a Where condition, it retrieves pipeline details from ELT control lookup tables. If no condition is provided, all pipeline details are returned to the caller.

Who it's for

Data and analytics teams who need to query ELT control tables without writing SQL directly.

How teams use this

Filter pipelines by control ID

Call the function with a Where condition to find all pipelines matching a specific ELT Control ID. Results are returned instantly so teams can verify pipeline configuration without manual lookup.

Sort results by pipeline status

Add an Order By parameter to retrieve pipeline details sorted by status or timestamp. This helps teams prioritize which pipelines to review or troubleshoot first.

Limit results for large datasets

Include a Limit parameter to restrict the number of records returned when querying large control tables. This reduces processing time and makes results easier to review.

Combine multiple query conditions

Use Where, Order By, and Limit together to build complex queries that filter, sort, and paginate pipeline results. All conditions work independently or in combination.

How it works

  1. Call the function with query parameters. Invoke this automation with a Where condition to filter results, or call without conditions to retrieve all pipeline details from the ELT control lookup tables.
  2. Retrieve entries from child control table. Query the ELT Control Table Child lookup table in batch mode to fetch all entries that match the provided conditions or return all records if no filter is specified.
  3. Retrieve entries from main control table. Query the ELT Control Table Main lookup table in batch mode to get pipeline configuration details based on the Where, Order By, or Limit conditions passed to the function.
  4. Format results as CSV output. Compose the retrieved pipeline details into CSV format so the results can be easily consumed by downstream systems or exported for analysis and review.
  5. Return query results to caller. Return the formatted results to the caller, including all matching pipeline records sorted and limited according to the Where, Order By, and Limit parameters provided.