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
Frequent Visitor

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.

View solution in original post

KarimH
Frequent Visitor

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (23,096)