Request description need to populated from RITM description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 01:28 AM
I have written one BR to populate Request description from RITM description once RITM got created.
Below is the code:
var req = new GlideRecord ('sc_request');
req.addQuery('sys_id',current.request);
req.query();
if(req.next()){
req.description = current.description;
req.update();
}
But its not working. The same is working from Background script. Please help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 01:37 AM
Hi @Rakesh11 When is the BR triggered? also how are you triggering RITM? wf or flow designer?
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 01:38 AM
Hi @Rakesh11 ,
Create after insert Br on sc_req_item table with your script it should work else put some logs and check Br executing or not.
var req = new GlideRecord ('sc_request');
req.addQuery('sys_id',current.request);
req.query();
if(req.next()){
req.description = current.description;
req.setWorkFlow(false);
req.update();
}
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 02:49 AM
Tried but no luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 02:47 AM
your BR should be after insert on RITM
I hope you are populating RITM's description when RITM is getting created, because if that is empty then REQ description won't get updated
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader