copy sctask attachments - to rtim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2025 10:46 PM
Hi Team ,
can anyone please help me on this requiement .
Ony for particular catalog item ' Snow Support '
whenever in sctask we have attached any attachment . the same to should copy to ritm .
how to configure , can any one please help me .
@Ankur Bawiskar Please help me here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 01:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2025 11:25 PM
Hi,
In my opinion attachments should never be copied this way, it will only lead to duplication of data, which is unnecessary most times.
Instead, I propose that you create a simple Flow that moves the attachment from the SCTASK to the RITM when this scenario happens.
It shouldn't be hard to configure, reach you if you want an example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 01:13 AM
Hi @nameisnani
Follow the below video to copy attachment which I have created.
https://www.youtube.com/watch?v=4P-AUaNQ8EE&list=PLKH9bPqlw1neHQZWQpYXHKy7LGiG9lhZn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 01:30 AM
I already shared solution for your same question in another thread.
sharing here again
you can use after insert business rule on sys_attachment
Condition: current.table_name == 'sc_task'
Script:
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var gr = new GlideRecord("sc_task");
gr.addQuery("sys_id", current.table_sys_id);
gr.addQuery("request_item.cat_item.name", "ServiceNow Suppor");
gr.query();
if (gr.next()) {
new GlideSysAttachment().copy("sc_task", gr, 'sc_req_item', gr.request_item.sys_id);
}
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 01:41 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.