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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2024 08:43 AM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2024 10:01 AM
In your UI action, you have access to the current object. From there you can get any information you need.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/