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

Condition no working

Hi, 

 

I have a flow which has rows from sharepoint with status rejected or approved, I did a condition that if the value is approved. However, when running the flow the output when the condition is approved is false 

dcarreropinto_1-1667560628241.png

I don´t understand why all the outputs are false rejected or approved 

 

 

2 REPLIES 2
CFernandes
Super User
Super User

Hey @dcarreropinto 

 

Did you add the Condition like the below -

 

CFernandes_0-1667567453970.png

 

If so it should work...

 

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!

 

P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

grantjenkins
Super User
Super User

It looks like you've added a Choice field to your SharePoint List called Status with options Approved, Rejected, etc.

 

When using Choice fields in Power Automate you get two fields to choose from. In your case you will have Status which contains the Id and Value, and another field called Status Value that just contains the value of the field (Approved, Rejected, etc.).

 

grantjenkins_0-1667632099986.png

 

So, in your Condition, you should be using the Status Value as so:

grantjenkins_1-1667632126515.png

 

If you were only interested in getting the approved items, then I'd suggest using the Filter Query within Get items. Then you don't even need to add the Condition within the Apply to each since you only retrieved approved items.

 

The Filter Query in your case would be:

Status eq 'Approved'

 

grantjenkins_2-1667632308886.png

 


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,487)