cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChadC
Frequent Visitor

Approval Comments Display Object Reference Instead of Value

Hi, 

 

I have a Flow using an Approval connector with custom responses. Responses include "Approve", "Approve with edits", and "Reject." If "Approve with edits" or "Reject" is chosen, then an email is generated which references the Approval comments. Until about last week, this worked fine with both options and the comments populated as expected. However, now the email is being populated with a refence to the value of "commentApprove with edits" only when "Approve with edits" is selected. The comments for the Approval when "Reject" is chosen still populate as expected.

 

FlowCommentIssue.PNG

I've tried removing and readding this reference in the Flow to no avail. There was no change to the structure of the flow in between when this was working properly and when it failed.

 

Any advice?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
ChadC
Frequent Visitor

Re: Approval Comments Display Object Reference Instead of Value

The custom values cannot contain spaces. "Approve_With_Edits" returns comments submitted on the approval.

View solution in original post

7 REPLIES 7
Super User
Super User

Re: Approval Comments Display Object Reference Instead of Value

If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you.

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!

ChadC
Frequent Visitor

Re: Approval Comments Display Object Reference Instead of Value

Hi Brad, 

 

Thank you for responding. Below are screenshots of the flow leading up to the problem step.

 

Flow pt 1.PNGFlow pt 2.PNG

The problem is with the left, bottom step: "Send notice of approval with edits to requester."

 

The [Comments] dynamic content node is producing the value of "{{commentApprove with edits.value}}." However, the rightmost step, "Send notice of rejection to requester", uses the same dynamic content node and produces the expected value.

 

I do not receive any error messages whatsoever. This seems to me like the dynamic content node is wrapping the programmatic reference in another set of curly braces which is then being interpreted as a string and not an object reference. 

Highlighted
ChadC
Frequent Visitor

Re: Approval Comments Display Object Reference Instead of Value

The custom values cannot contain spaces. "Approve_With_Edits" returns comments submitted on the approval.

View solution in original post

HelplessMax Helper I
Helper I

Re: Approval Comments Display Object Reference Instead of Value

i have a similar problem. I created an approval with 3 options, Approve, Reject and Rückfrage (query in english)

Whenever the third options is selected in the approval email and a random comment is added, this happens: 

{{Comment-3value}} is added for anything that was typed in the comment field

Bildvorschau

This is the Flow Approval:FLOW APPROVAL.PNG

i am happy for every advice 🙂

ChadC
Frequent Visitor

Re: Approval Comments Display Object Reference Instead of Value

Hi HelplessMax, 

 

My experience has been that Flow doesn't handle "complex" strings well. I suspect your issue is with the umlauted character. Try using a value of "Ruckfrage" instead and see if the issue reoccurs. 

 

Hope this helps.

HelplessMax Helper I
Helper I

Re: Approval Comments Display Object Reference Instead of Value

You are a legend! It workds finde now, the Umlaut"ü" was the the problem

Thanks again 🙂

 

Max

ChadC
Frequent Visitor

Re: Approval Comments Display Object Reference Instead of Value

Glad it helped!!

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (6,933)