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

Condition that looks for a specific field value in Get Item action

Sorry for the long title.

Hi there, I am trying to make a Condition that evaluate a specific field value in Get item, for example: Status is equal to "Present". So, if the value is null or "Present" then Create a new item otherwise stop.

Most solutions were using "@equals(length(body(‘Get_items’)?[‘value’]), 0)" in the condition which wasn't specific.
1 ACCEPTED SOLUTION

Accepted Solutions

If you add a condition after a Get items (or any multiple item action, like Get files or Get rows), Flow will automatically create an apply to each each loop. I just created this, and as soon as I added a parameter to the condition, it automatically created the Apply to each while nesting the condition automatically: 

ApplyToEach.PNG

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Brad_Groux
Super User II
Super User II

The condition would look something like this:OrCondition.PNG

You would simply have the item is equal to Present or the item is equal to null expression. To add the second condition item, click the +Add button and choose Add row. And change the And condition to an Or via the dropdown.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Melio
Frequent Visitor

Thank you for your help. Sorry, I meant to say "Get items" with "s."

The output of SP "Get items" is a big chunk of data of all items. But, I need the condition to look for specific fields in that output all the items. Let's say 3 items out of 10 contain Status "Present, " Flow should then copy them to the second SP.

If you add a condition after a Get items (or any multiple item action, like Get files or Get rows), Flow will automatically create an apply to each each loop. I just created this, and as soon as I added a parameter to the condition, it automatically created the Apply to each while nesting the condition automatically: 

ApplyToEach.PNG

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (43,209)