how to update Requested for and Opened by on sc_req_item table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 09:51 AM - edited 10-31-2023 09:53 AM
Hi All,
how to update Requested for and Opened by on sc_req_item table in workflow of a catalog item
var requestedFor = current.varaibles.req_for;
var openedby = current.opened_by;
above are the values from current RITM and need to update on the new RITM after this request
var reqItem = new GlideRecord('sc_req_item');
reqItem.get(sys_id);
reqItem.requested_for = requestedFor;
reqItem.opened_by = openedby;
reqItem.update();
i am trying to use this but not able to update the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 11:44 AM
not working
but i tried this and got like this except Opened by
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 12:26 PM
Hi @Ram050670 ,
Ok can u try updating opened by without task like
reqRecord.opened_by = openedby;
Thanks,
Danish