<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: copy sctask attachments - to rtim in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342432#M1220016</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981"&gt;@nameisnani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below&lt;/P&gt;&lt;P&gt;Create Business rule :&lt;/P&gt;&lt;P&gt;Table - sc_task&lt;BR /&gt;When to Run - Before Update&lt;BR /&gt;Condition - item is&amp;nbsp;&lt;SPAN&gt;Snow Support&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Scripts -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(function executeRule(current, previous /*null when async*/ ) {
    // Add your code here{
        GlideSysAttachment.copy('sc_task', current.getUniqueValue(), 'sc_req_item', current.request_item);
})(current, previous);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 05:55:29 GMT</pubDate>
    <dc:creator>Bhavya11</dc:creator>
    <dc:date>2025-08-04T05:55:29Z</dc:date>
    <item>
      <title>copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342427#M1220012</link>
      <description>&lt;P&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone please help me on this requiement .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ony for particular catalog item ' Snow Support '&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whenever in sctask we have attached any attachment . the same to should copy to ritm .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to configure , can any one please help me .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966" target="_blank"&gt;@Ankur Bawiskar&lt;/A&gt;&amp;nbsp; Please help me here&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 05:46:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342427#M1220012</guid>
      <dc:creator>nameisnani</dc:creator>
      <dc:date>2025-08-04T05:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342431#M1220015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981"&gt;@nameisnani&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can refer this solution :-&lt;BR /&gt;&lt;A href="https://www.servicenow.com/community/itsm-forum/how-to-copy-attachment-from-sctask-to-ritm/m-p/701260" target="_blank"&gt;https://www.servicenow.com/community/itsm-forum/how-to-copy-attachment-from-sctask-to-ritm/m-p/701260&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;STRONG&gt;If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.&lt;/STRONG&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 05:55:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342431#M1220015</guid>
      <dc:creator>SD_Chandan</dc:creator>
      <dc:date>2025-08-04T05:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342432#M1220016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981"&gt;@nameisnani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below&lt;/P&gt;&lt;P&gt;Create Business rule :&lt;/P&gt;&lt;P&gt;Table - sc_task&lt;BR /&gt;When to Run - Before Update&lt;BR /&gt;Condition - item is&amp;nbsp;&lt;SPAN&gt;Snow Support&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Scripts -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(function executeRule(current, previous /*null when async*/ ) {
    // Add your code here{
        GlideSysAttachment.copy('sc_task', current.getUniqueValue(), 'sc_req_item', current.request_item);
})(current, previous);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 05:55:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342432#M1220016</guid>
      <dc:creator>Bhavya11</dc:creator>
      <dc:date>2025-08-04T05:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342441#M1220018</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/196568"&gt;@Bhavya11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have tested - attachment is not copying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 06:03:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342441#M1220018</guid>
      <dc:creator>nameisnani</dc:creator>
      <dc:date>2025-08-04T06:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342463#M1220023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In my opinion attachments should never be copied this way, it will only lead to duplication of data, which is unnecessary most times.&lt;/P&gt;
&lt;P&gt;Instead, I propose that you create a simple Flow that moves the attachment from the SCTASK to the RITM when this scenario happens.&lt;/P&gt;
&lt;P&gt;It shouldn't be hard to configure, reach you if you want an example.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 06:25:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342463#M1220023</guid>
      <dc:creator>OlaN</dc:creator>
      <dc:date>2025-08-04T06:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342550#M1220041</link>
      <description>&lt;P&gt;can you try this&lt;/P&gt;&lt;P&gt;BR: after insert on sys_attachment&lt;/P&gt;&lt;P&gt;Condition: current.table_name == 'sc_task&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var taskRec = new GlideRecord('sc_task');

taskRec.addQuery('sys_id', current.table_sys_id);

taskRec.query();

if(taskRec.next()){

var ritmRec = new GlideRecord('sc_req_item');

ritmRec.addQuery('sys_id',taskRec.request_item);

ritmRec.query();

if(ritmRec.next()){

GlideSysAttachment.copy('sc_task', current.table_sys_id, 'sc_req_item', ritmRec.sys_id);

}

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 08:01:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342550#M1220041</guid>
      <dc:creator>Bhavya11</dc:creator>
      <dc:date>2025-08-04T08:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342554#M1220042</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/196568"&gt;@Bhavya11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be only for particular catalog item “ snow support “&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now please update&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 08:07:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342554#M1220042</guid>
      <dc:creator>nameisnani</dc:creator>
      <dc:date>2025-08-04T08:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342561#M1220044</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981"&gt;@nameisnani&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Follow the below video to copy attachment which I have created.&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=4P-AUaNQ8EE&amp;amp;list=PLKH9bPqlw1neHQZWQpYXHKy7LGiG9lhZn" target="_blank"&gt;https://www.youtube.com/watch?v=4P-AUaNQ8EE&amp;amp;list=PLKH9bPqlw1neHQZWQpYXHKy7LGiG9lhZn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 08:13:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342561#M1220044</guid>
      <dc:creator>Ravi Gaurav</dc:creator>
      <dc:date>2025-08-04T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342579#M1220050</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981"&gt;@nameisnani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already shared solution for your same question in another thread.&lt;/P&gt;
&lt;P&gt;sharing here again&lt;/P&gt;
&lt;P&gt;you can use after insert business rule on sys_attachment&lt;/P&gt;
&lt;P&gt;Condition: current.table_name == 'sc_task'&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;(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);&lt;/LI-CODE&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 08:30:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3342579#M1220050</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-08-04T08:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3348324#M1221356</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981"&gt;@nameisnani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 08:41:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3348324#M1221356</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-08-11T08:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3348521#M1221409</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981"&gt;@nameisnani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar situation in my work routine&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May you consider create a business Rule&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter:After &amp;gt; insert&amp;nbsp;&lt;/P&gt;&lt;P&gt;condition: item &amp;gt; (name of your catalog)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scrip:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(function executeRule(current, previous) {&lt;BR /&gt;var taskGR = new GlideRecord('sc_task');&lt;BR /&gt;if (taskGR.get(current.table_sys_id)) {&lt;BR /&gt;GlideSysAttachment.copy(&lt;BR /&gt;'sc_task',&lt;BR /&gt;taskGR.sys_id,&lt;BR /&gt;'sc_req_item',&lt;BR /&gt;taskGR.request_item&lt;BR /&gt;);&lt;BR /&gt;}&lt;BR /&gt;})(current, previous);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 11:26:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3348521#M1221409</guid>
      <dc:creator>Rafael Batistot</dc:creator>
      <dc:date>2025-08-11T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: copy sctask attachments - to rtim</title>
      <link>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3446382#M1240066</link>
      <description>&lt;P&gt;&lt;A href="https://www.servicenow.com/community/user/viewprofilepage/user-id/95981" target="_blank"&gt;@nameisnani&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 07:23:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/copy-sctask-attachments-to-rtim/m-p/3446382#M1240066</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-12-10T07:23:53Z</dc:date>
    </item>
  </channel>
</rss>

