- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 01:16 PM
Can anyone provide some insight on the proper script for the Business Rule that will allow Additional Comments created on the Request to automatically copy to the RITM? I tried using the following with no luck.
Create an after business rule on sc_request table
-When: after insert and update
-Conditions: Additional comments changes
-Script:
var gr= new GlideRecord("sc_req_item");
gr.get(current.getValue("request_item"));
gr.comments=current.comments.getJournalEntry(1);
gr.update();
Thanks,
AJ
Solved! Go to Solution.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 01:26 PM
Hello
var gr = new GlideRecord('sc_req_item'); gr.addQuery('request',current.sys_id);
gr.query(); while(gr.next())
{
gr.comments = current.comments;
gr.work_notes = current.work_notes;
gr.update();
}
Please mark answer correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2022 01:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2022 03:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2022 08:40 AM
That indicates that you have an Inbound Action form Requested Items, but not for Request. Or you do have in Inbound Action for Requests too, but it is not programmed to add the contents of the e-mail as an Additional comment.