How to get a handle from "Ask for Approval" Flow action to update sysapproval_approver record?

oyu
Tera Contributor

Is there a way to obtain the Sys ID or Data Pill for the sysapproval_approver record created by  "Ask for Approval" flow action?  

We want to refer to the specific Approval record created by the "Ask for Approval" flow action to further update the specific Approval Record.

 

We have a scenario where multiple sysapproval_approver records can exist for the same SN Approving record.  For example: several approval request can be initiated from various processes like "Request to change ownership", "Request to change Location", "Request to change Cost Center", etc.   

 

If we want to specifically update the Approval record related to say "Request to Change Ownership", there is no way to identify the specific Approval record (i.e. since there are multiple Approval records existing for the same Approving record).

 

 

 

1 ACCEPTED SOLUTION

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @oyu

Sorry but there is no way to get sys_id/any relation of approval record from flow designer. In workflow there is a field "wf_activity" in the table "sysapproval_approver" using this we are able to populate a custom field name "Approver Role" on sysapproval_approver "sysapproval_approver".

In flow designer I did the same with a workaround I am updating the approval records (Approver Role) once those are getting created using a custom action in flow designer.

 

SaurabhGupta_0-1669071238808.png


Above is working fine for me in case of sequential approval. Above will not work if we need to trigger parallel approvals for a record.

Please mark the answer as correct, If I answered your query. It will be helpful for others who are looking for similar questions.

Regards
Saurabh


 


Thanks and Regards,

Saurabh Gupta

View solution in original post

3 REPLIES 3

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @oyu

Sorry but there is no way to get sys_id/any relation of approval record from flow designer. In workflow there is a field "wf_activity" in the table "sysapproval_approver" using this we are able to populate a custom field name "Approver Role" on sysapproval_approver "sysapproval_approver".

In flow designer I did the same with a workaround I am updating the approval records (Approver Role) once those are getting created using a custom action in flow designer.

 

SaurabhGupta_0-1669071238808.png


Above is working fine for me in case of sequential approval. Above will not work if we need to trigger parallel approvals for a record.

Please mark the answer as correct, If I answered your query. It will be helpful for others who are looking for similar questions.

Regards
Saurabh


 


Thanks and Regards,

Saurabh Gupta

Hi @Saurabh Gupta  

 

could you please provide details of your custom action created to update approval record

 

Thanks in advance!!

harinivenkatesh
Tera Contributor

@oyu I have the same requirement right now. Did you find a solution for it? Could you please attach detailed info with screenshots of possible?