Sync Material Records by Article Group from MySQL

Recipe ToolsDatabaseMarketing

What it does

When a call triggers the SELECT syd_poc.src_material query, this automation checks if an article group parameter is present. It queries the MySQL src_Material table and returns filtered or complete records so the system has current material data.

Who it's for

Data and analytics teams who need to query material records filtered by article group without writing SQL directly.

How teams use this

Filter materials by article group

Query the src_Material table with an article group parameter to retrieve only materials in that group. The response includes all matching records in one batch call.

Retrieve all materials without filtering

Call the query without an article group parameter to get the complete src_Material table. The automation detects the missing group and returns all records instead.

Add a material status filter

Extend the query to include a status condition so only active or inactive materials are returned. Set the filter logic alongside the existing article group check.

How it works

  1. Receive the material query call. A real-time call arrives for the SELECT syd_poc.src_material query with optional article group parameters to filter results.
  2. Query material records by group. Query the MySQL src_Material table in batch mode. If an article group is present, filter rows by that group. If not, return all material records.
  3. Return the material data. Send the query results back to the caller so the system receives the filtered or complete material records from src_Material.