Skip to main content
Question

Trigger a function when Approved or Rejected a Approval Process

  • January 28, 2022
  • 1 reply
  • 228 views

Forum|alt.badge.img+3

Hi All !

 

I am looking for a solution, how to trigger a function when an attached approval process got ‘Approved’ or ‘Rejected’.

I’m using a Approval Template with two persons assigned to Approve or Reject.

 

 

Thanks

This topic has been closed for replies.

1 reply

VivekBhandiwad
Hero (Partner)
Forum|alt.badge.img+8

Hi Uditha

Am assuming , you are looking for some support to identify the table, on which the custom event needs to be configured. 

 

View name is :  APPROVAL_CURRENT_STEP  . 

Based on this you should be able to further design the custom event, with conditions ( Status = Approved or Rejected).

Assume that the action will change, based on the Object Key and LU , meaning if the approval templete is connect to Shop Ord, the action will be different, and if the object key is connected to Project , as an example, the action will be different. 

These need to be incorporated in your conditions.

 

 

Regards

Vivek