Hi All...I have a list that I want to filter into three separate lists based on specific criteria. Then, I need to send each filtered list to a different Recipe Function, where each Recipe Function will post the data to a different API. What is the best way to filter and split the list efficiently?
Passed this to our team internally.
Hey ashok p., I would just create a list for each RF you would design and use a for each to append items to the matching list.
Hi All, Shonnah H. Shubham K. I don't want to use a for loop because I have more than 500 records. If I use a for loop, it will consume a lot of Workato tasks. I know I could solve this using a script (Python, Ruby, or JavaScript), but my client doesn't want to use scripts in the recipe. They want to follow the standard Workato approach using built-in actions and formulas only. Does anyone have a suggestion for handling this efficiently without looping through every record?
Hi ashok p. have you come across the "SQL Collection by Workato" App? You could use a "Create List (Batch)" action which turns your initial list into effectively a temporary table (or at least that's how I imagine it 😀). Having done that you can then use another action from the same set ("Query Lists (Batch)") to query (i.e. filter) the list. Picture attached showing the "Query Lists" steps...
As you can see from the Recipe picture, you could add additional Query List steps as required, and then use the output from each of these to pass into your calls to the Recipe Functions. Hope that makes sense?
RussellJ Again thank you for sharing your knowledge and going the extra mile by providing a visual!
#CommunityStrong