Current Request sys_id on ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 02:26 AM
How to get the sys_id of a current request in an ui action which is running on the task table?
Thanks,
Vaishali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 03:45 AM
Any suggestions on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 04:13 AM
Hi @Vaishali 11 ,
UI Action Script:
getREQId();
function getREQId() {
if(current.sys_class_name='sc_request'){
current.sys_id.toString();
}
or
if(current.getTableName()='sc_request'){
current.getUniqueValue().toString();
}
}
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 04:24 AM
Hi Reshma,
I have tried the above scripts but it's not working.
Please find the screenshot of the ui action script I created for your reference:-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 04:58 AM