Contact Us

Using Workato Lists to Parse Objects and then Compose a CSV to upload to Box

Workato helps you get more out of List by connecting it with apps like Salesforce, QuickBooks Online, and Callable recipe and automating tedious tasks in your business.

Before the recent addition of the Lists Utility in Workato, you had to find a way to get your list perfectly set before you utilized it in a Compose CSV action. If your requirements dictated the need for an If/Then action to check for additional criteria after getting your list from your search action, then it simply wouldn’t work. Here’s an example that doesn’t work (yes, I learned the hard way).

  1. Here we search for our list, which you can filter for certain data but you’d have to use fairly complex formulas to get your specific data. (I like easy, so this doesn’t work for us or our clients if they have to go back and change it later)
  2. Our For Loop that goes through each records from our first step.
  3. In this If action we want to check to see if they’ve downgraded within the last 7 days since the job ran (this Recipe runs weekly).
  4. Compose the CSV from the list of items from Step 2. This is where the problem lives, if one record passes the If action, it will pull all of the items from the list in step 2!

Now with the Lists Utility you can parse through a list from a previous step to pull out records/items that meet your new criteria! This makes it incredibly easy to do those complex formulas with your If statements.

  1. In Step 1 we search for our records again.
  2. Here we run through each record like we did in the example above.
  3. Now we check each item for our specific criteria and if it passes then…
  4. Append that item to our new list. This item ID is pulled from the Step 2 list.
  5. Now when we go to compose our CSV we pull the list from step 4!

Hopefully you’re not reading this post because your stuck like I was in my first example. If you’re there feel free to reach out to me by filling out our contact form. I’d be happy to give your recipe a quick review!

First Name (required)

Last Name (required)

Company

Email (required)

Your Message

Chase Friedman

Managing Consultant

Email

About the author

Chase has multiple years of Salesforce experience specializing in automation processes utilizing middle-ware tools. With over 10 years of experience in managing IT projects, along with his PMP, he focuses on delivering simple, yet powerful, solutions.

More posts by Chase Friedman »