How to get sysid of the approver to set the status in sysapproval_approver table using script?

Virendra K
Kilo Sage

Hi All,

 

As per requirement, I need to call UI page with comments text box where user will enter the rejection comments and set the status=Rejected to specific approver using script (snap).

Problem is, rejected status is getting set randomly to any approver because I am not sending sys id / user details along with Change id and Comments to sysapproval_approver table.

I tried with g_list.getChecked(), but not luck.

How I could fetch / get the sysid of approver so that I can update specific record ?

VirendraKharka_0-1719675744887.png

 

 

 

1 REPLY 1

Slava Savitsky
Giga Sage

In your UI action, you have access to the current object. From there you can get any information you need.