cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DarkLord22
Level: Powered On

Approval Comments cant find dynamic content

Hello all and thank you for your time.

 

I have an issue.

 

I am tryint to save the comments from the approval to my sharepoint database at the stauts field .

 

But i cant find which is the correct dynamic content.

 

flow.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Piper
Level 8

Re: Approval Comments cant find dynamic content

I'm not sure if this is what you are asking for so please clarify if I'm not understanding your latest question.

 

If you attempt to add the The Approval's Responses Comments to the SharePoint Update flow will automatically create an Apply to Each action and move your SharePoint Update Item action inside of the loop. I added some screen shots to see how I did it.  If this isn't what you were asking for please elaborate.

 

ResponseComments.pngResponse Comments added to SharePoint Update Item

 

AutomaticallyCreatesApplytoEach.pngAutomatic creation of Apply to Each

 

5 REPLIES 5
Piper
Level 8

Re: Approval Comments cant find dynamic content

Hi @DarkLord22,

The approver's comments are in the Responses (there may be multiple approvals) so you need an Apply to Each on the Responses element. I declare a variable and then append to that variable in side of the loop.  In the screen shot below you will see I'm appending to the Approval Response Details variable.

 

ApprovalResponses.pngApply to Each ResponsesI hope that helps,

Piper

 

DarkLord22
Level: Powered On

Re: Approval Comments cant find dynamic content

Thank you,

So i will use a set approval response Details to save them to a variable and then i can save that to the sharepoint?

 

I will always have 1 response if that helps..

 

Thank you for the help

 

Piper
Level 8

Re: Approval Comments cant find dynamic content

@DarkLord22 

Glad to help!

 

Technically, since it will only execute one time, you can put the SharePoint update inside of the apply to each and skip the variable.  I tend to do anyway to future proof it a bit.

 

In the future, if you want to add multiple approvers you would need to use the variable as you would end up with multiple updates to the item and only preserve the last update unless the list has versioning turned on, the column is of type Multiple lines of text, and the Append changes to existing text column is set to Yes.

 

Thanks,

Piper

DarkLord22
Level: Powered On

Re: Approval Comments cant find dynamic content

Do you have any examples i am not sure how to put the information at the sharepoint....

 

thanks!

Piper
Level 8

Re: Approval Comments cant find dynamic content

I'm not sure if this is what you are asking for so please clarify if I'm not understanding your latest question.

 

If you attempt to add the The Approval's Responses Comments to the SharePoint Update flow will automatically create an Apply to Each action and move your SharePoint Update Item action inside of the loop. I added some screen shots to see how I did it.  If this isn't what you were asking for please elaborate.

 

ResponseComments.pngResponse Comments added to SharePoint Update Item

 

AutomaticallyCreatesApplytoEach.pngAutomatic creation of Apply to Each

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 213 members 5,164 guests
Please welcome our newest community members: