Flow designer - how to get approval's comments

AEterni
Mega Guru

Hello All,

I have a basic approval flow in Flow Designer:

  • If approved do this
  • If not approved do that

Do you know if it is possible to"get" or "lookup" the approval's (or rejection) comments?

I'd like to update the record (in this case the "additional comments" of the requested items with the comments of all approvers.

Thanks.

7 REPLIES 7

Pranesh072
Mega Sage
Mega Sage

It will give you last comment

current.comments.getJournalEntry(1);

Thank you for your reply, but I don't think this will do the trick.

I have a catalog item, when it is requested a first approval flow is triggered.

The request for approval goes to a team of 2 colleagues and they both have to approve in order for the request to move to the second stage.

find_real_file.png find_real_file.png

What I would like to achieve is inject via "Additional Comments" in the flow step number 8 (Update requested item Record) the comments that I can find in each approval request.

 

 

 

I think I am overcomplicating things.

I can leverage the "Approval History" filed in the sc_req_item table.

It works if the comments is added via system

It doesn't seem to work if the approval/rejection comes via email

nowguru
Tera Contributor

Hi Alessandro,

Were you able to figure this out?  I tried copying the Approval History to Task Description and I still dont see comments field that comes from approval/rejection activity.

Thanks,

Johnny