How to add list of approver details on RITM

Ramu8
Tera Expert

Hi Team,

 

how to add list of approvers on ritm as a single comment 

 

or anyway to inform about approver to the end user that request is pending with so on so approver 

 

please advice

7 REPLIES 7

Uncle Rob
Kilo Patron

I mocked something up in Flow Designer for you:

UncleRob_0-1734701155735.png

Flow Variable:  "commentString" (string data type)

1.  Ask for the approval

2.  Look up Approval records where "Approval For" = triggering RITM.

3.  For each of (2)
4.  Set Flow Variable "commentString" = commentString (3.Name), 

--- essentially "set this to whatever it was before add a space, then grab the approver's name from whatever iteration you're on, then add a comma and a space.  Remember, this isn't javascript its just raw string generation, so don't worry about using + to join the strings or anything.
5.  Update Record (triggering RITM)
--- comments = The following approvers were asked: commentString

 

Hi @Uncle Rob 

 

4.  Set Flow Variable "commentString" = commentString (3.Name), 

--- essentially "set this to whatever it was before add a space, then grab the approver's name from whatever iteration you're on, then add a comma and a space.  Remember, this isn't javascript its just raw string generation, so don't worry about using + to join the strings or anything.

 

could you please explain above step briefly so that i can store approval name and approval email

 

Thanks for response i followed below flow which is created on approval table when approval record is inserted,

 

and i am created custom field "Addition of comment" check box on approval table using it whenever record fetches data from one approval record which is used in 8th step making this field as true by using update record action

 

but in my case with same approver name and mail the comment is populating  3 times as 3 approval present for ritm so please suggest how to bring all the approval name and email on one time in one comment

Ramu8_0-1734926455904.png

 


@Ramu8 wrote:

Hi @Uncle Rob 

 

4.  Set Flow Variable "commentString" = commentString (3.Name), 

--- essentially "set this to whatever it was before add a space, then grab the approver's name from whatever iteration you're on, then add a comma and a space.  Remember, this isn't javascript its just raw string generation, so don't worry about using + to join the strings or anything.

 

could you please explain above step briefly so that i can store approval name and approval email

 


Sure.  It'll look a little like this

UncleRob_0-1734962067301.png

The first thing is to put the Flow Variable itself into the Data.  That will ensure through the loop it will just keep adding stuff to itself.  Then add a space, then add the Approver's Name space-dash-space Approver's email.  You just drag those values from your data picker on whatever node your For Each Item is on.
Then end with a comma.

At the end of the loop it will look something like.....
bob loblah - bob.loblah@bingobangobungo.com,  jorgen bjorgen - jorgenbjorgen@bingobangobungo.com, juan carlos chung - jcchung@bugnostroclumfanclub.com, chad broski - chadbroski@alphachadbro.ru,  etc etc