March 2017
Beginner
358 pages
9h 51m
English
Here, we use get() with two arguments to retrieve an RITM (from the sc_req_itemtable) by number, and then we use setValue() and gs.getUserID() to set the assigned_to field to the current user:
var ritmGR = new GlideRecord('sc_req_item'); ritmGR.get('number', 'RITM0010455'); ritmGR.setValue('assigned_to', gs.getUserID()); ritmGR.update();
Read now
Unlock full access