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
I don´t understand why all the outputs are false rejected or approved
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.).
So, in your Condition, you should be using the Status Value as so:
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'
Hey @dcarreropinto
Did you add the Condition like the below -
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.
WarrenBelz
146,552
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional