Generate two lists from JSON in a function
Recipe ToolsData ParserMarketingUtilities
What it does
When someone calls this function with JSON data, it parses the document and builds two lists: one for report data and one for summary information. Both lists return together so the calling workflow has all the data it needs.
Who it's for
Engineering teams who need to extract and organize structured data from JSON within a larger automation.
How teams use this
Organize report data and summaries
Parse incoming JSON once and split it into two lists so downstream steps can use report details in one branch and summary metrics in another without parsing twice.
Reuse this function across workflows
Call this function from multiple automations that need the same JSON parsing and list structure, so the logic lives in one place and stays consistent across teams.
Add filtering to each list
Modify the list creation steps to include conditions that filter the parsed data, so only records matching certain criteria are included in the report data or summary list.
How it works
- Receive the function call. A workflow calls this Workato Recipe Function and passes JSON data as input to be processed by the function.
- Parse the JSON document. Json Parser extracts fields and structure from the JSON so the data can be organized into separate lists for reporting and summary use.
- Create the report data list. Build a list from the parsed JSON fields that will be used for detailed reporting purposes in downstream steps.
- Create the summary list. Build a second list with summary information from the same parsed data so both outputs are ready at the same time.
- Return both lists. Send the report data list and summary list back to the calling workflow in a single response so it has everything needed.