- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 01:04 AM
Hi All,
I need to copy RITM work notes for a particular catalog item.
I am not sure what to add in the query.
Please help.
Thanks,
Sam
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 01:20 AM
Hi @Samiksha2 Create a after update BR
cond: item is "your catalog"
script:
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 08:50 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 08:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 01:28 AM
Hello @Samiksha2,
You need to create after business rules on RITM table.
Please refer below screenshots:
(function executeRule(current, previous /*null when async*/) {
var request = new GlideRecord("sc_request");
request.addQuery("sys_id", current.request);
request.query();
if (request.next()) {
request.work_notes = current.work_notes.getJournalEntry(1);
request.update();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 02:01 AM
Thank you everyone for the reply.
But can anyone help me with this query- when worknote is not updated by system then only it should copied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 02:03 AM
I guess this will work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 02:04 AM
No It is not working