How do I get the parent record for an approval via a flow

Moedeb
Tera Guru

I have a flow that I want to use to close out any outstanding approvals after a period of time.

 

I can identify the approval records, add comments and cancel them easily, however I also want to add a message to the parent record to advise the user that the approval has been cancelled because it has exceeded the max allowed time for an approval. Then advise them that they should resubmit if they still require whatever they had asked for approval of.

 

I cannot see how I can get to the parent record to add a comment. 

 

Ideas?

 

 

 

 

1 ACCEPTED SOLUTION

Huynh Loc
Mega Sage

Hi @Moedeb ,
Please retrieve the parent record using the value in the “Approval for” field on the Approval record. image.png

If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.

 

View solution in original post

2 REPLIES 2

Huynh Loc
Mega Sage

Hi @Moedeb ,
Please retrieve the parent record using the value in the “Approval for” field on the Approval record. image.png

If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.

 

Moedeb
Tera Guru

@Huynh Loc thank you, yes that worked 🙂 

The only thing I need to do now is make sure it only updates the parent once if there are multiple approvers eg: for a group approval 🙂

 

Likely I will look for group approvals first and update parent with that, then run another look up records afterwards to get approvals that are not group approvals

 

So here is what I tested just to make sure the parent record is the correct one and was getting updated: