cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User II
Super User II

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

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
Highlighted
Super User II
Super User II

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

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!

Highlighted
Frequent Visitor

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

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.
Super User II
Super User II

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

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
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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