Notifications
Announcements
Hi I am trying to Build a flow, in part of the flow I need to check if an item exists in an array. Is it possible to do this?
my only problem is to check if exist in the array
the following shows my workflow:
Hi @EhsanAliverdi ,
To check if an item exists in an array, please check the following flow for a reference.
In my scenario, I am going to check if a button input exists in an array. If Yes, do nothing. If no, add the item to the list.
Best regards,
Mabel
Hi. I have a question about what might be the most efficient way to check whether a value exists in an array. Two straighforward approaches, it seems are these:
Does anyone know which is the best approach in terms of speed and resources?
Thanks.
I use a Compose where I store my triggerbody() array. In my example, I get one or more IDs by the triggerbody() separated by a comma. Then, to avoid the error, I check if it's empty. If so, I store an empty Array('') in my Compose; otherwise, I store the triggerbody() response. After that, I'll continue my flow with the array empty or not.
For what it's worth
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 522 Super User 2025 Season 2
Tomac 364 Moderator
abm abm 243 Most Valuable Professional