cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pfarley
Helper I
Helper I

Approval condition is not triggering the 'if yes' - am I using the wrong dynamic content?

Hi,

 

I'm having issues getting an approval to trigger the 'if yes' part of the condition. I am testing it and each time I click approve, the 'if no' is triggered and I receive the email, as shown in the illustration below.

This is what I have the dynamic content set to right now:

@equals(body('Start_and_wait_for_an_approval')?['responses'], 'Approve')

I have also tried:

-Responses Responder

-Responses Item

 

Does anyone see anything I'm missing?

flowIssue1.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @pfarley ,

 

It seems that you are using the Flow template to create a Flow. Please consider creating a new Flow from the blank and refer to the following thread to configure the condition:

Solved: Response Dynamic Content for Approvals does not ap... - Power Platform Community

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
KarimH
Advocate I
Advocate I

Hi pfarley,

 

go to the page where you see all running Flows. There you can open the Flows that ran before. Click on the one that didnt finish as expected. Click on the condition. you should see what values are really compared. This should help you to correct your flow.

 

Thanks! This is what the actual input is:

 
  "responses": [
    {
      "responder": {
 
      },
      "requestDate""2020-07-30T14:24:19Z",
      "responseDate""2020-07-30T14:25:58Z",
      "approverResponse""Approve"
    }
  ],
  "responseSummary""\r\nResponse: Approve\r\nRequest Date: Thursday, July 30, 2020 2:24:19 PM\r\nResponse Date: Thursday, July 30, 2020 2:25:58 PM",
  "completionDate""2020-07-30T14:25:58Z",
  "outcome""Approve",
}


When I go to the condition under the response, I just get this. It doesn't show anything else.

Is there anything else I can show?

flowIssue2.PNG
v-bacao-msft
Community Support
Community Support

 

Hi @pfarley ,

 

It seems that you are using the Flow template to create a Flow. Please consider creating a new Flow from the blank and refer to the following thread to configure the condition:

Solved: Response Dynamic Content for Approvals does not ap... - Power Platform Community

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
KarimH
Advocate I
Advocate I

Ok, now I see where your Problem is. You are comparing the wrong property. You should not compare "responses" because this contains all Response-Objects. You should compare the "Outcome" this one contains the outcome of the approval.

 

Outcome.png

 

Also when you rectify this don't forget to get rid of the "Apply to each" control. The approval has only one outcome. This was added automatcally, because you used the "response" property.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,129)