Display SubFlow variables in Approval notification body

AcioWDK
Tera Contributor

Hi guys,

I'm using a list collector for multiple selections and than with the help of a subflow called in a foreach loop in the main flow, i'm generating the approvals. This works flawless, all approvals get generated in parallel and functionality wise work as expected, but the e-mail body displays the RITM variables meaning the whole list collector with all the selected items. As you can imagine this makes it impossible for the approver to know which item he's approving. 

Is there a way to modify the approval notification ( or maybe another approach to this ) so it will display the correct selected item on each approval e-mail? 

2 REPLIES 2

Uncle Rob
Kilo Patron

So the flow is going to look something like this....

1 - Get Catalog Variables
2 - For each of VarListCollector
2.1 - Create an approval
-- Short Description = "This is some text " + (drag the appropriate data element from 2)

 

See you don't REALLY want the variable, because the variable is the variable is the variable.
What you REALLY want is the iteration THROUGH the values of the variable, which is stored in the For Each, not in the variable.

Hope that makes sense.

AcioWDK
Tera Contributor

That's exactly what i've done but before the foreach, i did a "look up records" so i get the full records of the selected items and in the foreach, im passing them to a subflow that takes care of the approval for each individual item ( so the approval is send to the correct person ). Im using the subflow so all approvals are sent at the same time instead of waiting for one approval to be answered. 

The problem is that the e-mail notification is sending the whole list collector and this is decided in the notification and email script triggered upon inserting an approval record and i don't see a way to link the current foreach record to the email notification. I've only figured out how to access the RITM variables in the email script.