• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Solutions Articles
  • Forums/Discussions
  • Submitted Tickets
New Topic
Discussions Recipe Building Formula Mode Questions
S

Saul Macht

started a topic about 2 years ago
Answered

Filter array using multiple values using formula .where

I have a data array that contain a list of fields. I would like to filter that array using a particular field e.g. status. My formula is:


`data`.where(status: "Completed")


How do I filter the array using more status values? I would like to retrieve a filtered array where status is either "Completed" or "Cancelled"


Best Answer
A
Amanda Wong said about 2 years ago

Hi Saul,


Thank you for your question. You can use the formula below to check for multiple status values and retrieve any item in the array that match either status values.


`data`.where(status: ["Completed","Cancelled"]) 


Answer

Amanda Wong

said about 2 years ago

Hi Saul,


Thank you for your question. You can use the formula below to check for multiple status values and retrieve any item in the array that match either status values.


`data`.where(status: ["Completed","Cancelled"]) 


Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2020   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato