What will gs.getUserID() return ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2016 01:05 AM
What will gs.getUserID() return in case the requester of a task replies a "pending-customer action" notification email sent from the system ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2016 01:29 AM
It returns the Sys_id of the user who responded
Palani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2016 03:59 AM
You might find this useful for other gs (GlideSystem) related information and user object.
http://wiki.servicenow.com/index.php?title=GlideSystem#getUserID.28.29&gsc.tab=0
http://wiki.servicenow.com/index.php?title=Getting_a_User_Object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 01:25 AM
My concern here is different, below is the config. for my instance:
(1)I have an inbound action which adds the email reply as the "comments" of catalog task
(2)have a BR which change the "status" of the catalog task on :
Condition: current.comments.changes()
Script:
if(current.state=='pending' && current.u_sub_status == 'Customer Action' && (current.u_task_for == gs.getUserID()){
current.state=1;
current.u_sub_status='';
}
So now my question is- how will the script determine the value of gs.getUserID() if the requester has only replied the email and have NOT logged in to the instance to view the request task or add any comment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 02:06 AM
Hi Amarendra,
Did you get an answer for your question? I have a similar concern.