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.

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.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,293)