web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Condition judgement do...
Power Automate
Unanswered

Condition judgement doesn't work correct

(0) ShareShare
ReportReport
Posted on by 2

I tried to build a simple approve flow, when new item is created in sharepoint list will trigger this flow, approve email and notification will be sent to my mail box and Teams, flow will go next step depend on my decision, when outcome of approval is equal to "Approve" will go true, and if outcome is not equal to "Approve" will go false. Like picture below

 

image.png

Now things go wrong, I run the test but even I choose accept the flow will still go false, like pic below

xiaogao409_0-1701245865380.png

Here's the output:

 

 

 

{
 "responses": [
 {
 "responder": {
 "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 "displayName": "xxxxx",
 "email": "xxxxx@xxxx.com",
 "tenantId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 "userPrincipalName": "xxxxxxxxxxxxxx@xxxxxxxxxxx.com"
 },
 "requestDate": "2023-11-29T07:50:39Z",
 "responseDate": "2023-11-29T07:50:48Z",
 "approverResponse": "Approve"
 }
 ],
 "responseSummary": "Approver: xxxxxx, xxxxxxx@xxxxxxx.com\r\nResponse: Approve\r\nRequest Date: Wednesday, November 29, 2023 7:50:39 AM\r\nResponse Date: Wednesday, November 29, 2023 7:50:48 AM",
 "completionDate": "2023-11-29T07:50:48Z",
 "outcome": "Approve",
 "name": "xxxxxxxxxxxxxxxx",x
 "title": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 "details": "Request by: aaaaa\nRequired item: aaaaaa\nEstablish price: 222222\nUsage: ",
 "requestDate": "2023-11-29T07:50:39Z",
 "expirationDate": "9999-12-31T23:59:59Z",
 "priority": "Medium"
}

 

 

I can see the outcome is exactly "Approve" which is same as the condition I set, but program still think they are different and go false route, I checked hundreds times but still cannot figure out the reason, can anybody help me with this, thank you.

Categories:
I have the same question (0)
  • grantjenkins Profile Picture
    11,063 Moderator on at

    Is there a reason why the Condition is inside an Apply to each? What is it iterating over?

  • xiaogao409 Profile Picture
    2 on at

    I don't know why Condition is in Apply to each box ,I just choose add new action and it automatically generated that loop for me. How can I remove that? Sorry I'm totally new in this. 

  • grantjenkins Profile Picture
    11,063 Moderator on at

    It should look like the following without the Apply to each. I noticed that your Approval expression is lowercase which is quite strange.

     

    grantjenkins_0-1701251062127.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard