cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Check if an item exists in array

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:

2019-03-12_12-18-09.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

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.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

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.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

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:

  • Loop through the collection and check each element, either setting a flag (e.g. blnValueFound = true), or concatenate the values and check the string (as above).
  • Apply a filter to the collection and then check whether it's empty.

Does anyone know which is the best approach in terms of speed and resources?

 

Thanks.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,142)