cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hoangja
Regular Visitor

Matching List ID with stored array values

Hi, 
I have a List of tasks, each of which has a column (type=Number) called TID. This number corresponds to the IDs of tasks in a separate 'master' list.

I've set up a flow which goes through my list of tasks, grabs ALL the TIDs for each item and puts them in an array. Then it goes through each item in the Master List and uses a conditional to check if their ID is in the array of TIDs. If it is, then do nothing. If it isn't, then the item should be deleted from the Master List.
However, when I run the flow the conditional always results in false which means deletes every item in the Master List...

hoangja_0-1638296973689.png

 

hoangja_2-1638297231144.png

hoangja_0-1638297628240.png

 

hoangja_3-1638297338146.png

 

Any help would be greatly appreciated!

Edit: added the Apply to Each screenshot

Edit 2: Solved - it turns out their was a type mismatch between the TID and the ID. I used the 'Compose' action in my flow to convert the array values and the ID's into String before comparing them. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @hoangja ,

 

Excellent work! Compose is a quite useful data operation for flows. I‘m here to make sure this is not a no reply thread, hope you don't mind!

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @hoangja ,

 

Excellent work! Compose is a quite useful data operation for flows. I‘m here to make sure this is not a no reply thread, hope you don't mind!

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,365)