<?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 How to attach file from a local machine to a particular record. in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346826#M1221030</link>
    <description>&lt;P&gt;My local machine folder(Documents) has a list of attachments with different types like PDF, JPG, etc.&lt;/P&gt;&lt;P&gt;The attachment file name starts with incidentNumber_fileName. For example: INC123456_users.pdf.&lt;/P&gt;&lt;P&gt;Requirement: I have to attach these attachments to their corresponding incident. How to do this?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2025 07:00:01 GMT</pubDate>
    <dc:creator>Vishal_Jaiswal</dc:creator>
    <dc:date>2025-08-08T07:00:01Z</dc:date>
    <item>
      <title>How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346826#M1221030</link>
      <description>&lt;P&gt;My local machine folder(Documents) has a list of attachments with different types like PDF, JPG, etc.&lt;/P&gt;&lt;P&gt;The attachment file name starts with incidentNumber_fileName. For example: INC123456_users.pdf.&lt;/P&gt;&lt;P&gt;Requirement: I have to attach these attachments to their corresponding incident. How to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:00:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346826#M1221030</guid>
      <dc:creator>Vishal_Jaiswal</dc:creator>
      <dc:date>2025-08-08T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346836#M1221033</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bast way is drag and drop or may you follow those instructions&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.servicenow.com/docs/bundle/zurich-platform-user-interface/page/use/using-forms/task/t_AddingAnAttachment.html" target="_blank" rel="noopener"&gt;https://www.servicenow.com/docs/bundle/zurich-platform-user-interface/page/use/using-forms/task/t_AddingAnAttachment.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:09:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346836#M1221033</guid>
      <dc:creator>Rafael Batistot</dc:creator>
      <dc:date>2025-08-08T07:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346839#M1221034</link>
      <description>&lt;P&gt;I have to do this through a script because there are large no of attachments.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:11:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346839#M1221034</guid>
      <dc:creator>Vishal_Jaiswal</dc:creator>
      <dc:date>2025-08-08T07:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346850#M1221037</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what's the business requirement?&lt;/P&gt;
&lt;P&gt;Users can always browse files from local machine and add to record using paper-clip icon.&lt;/P&gt;
&lt;P&gt;why to have script for this?&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>Fri, 08 Aug 2025 07:27:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346850#M1221037</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-08-08T07:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346855#M1221038</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Via script only work if the attachment is in ServiceNow, in the table sys_attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your files are out serviceNow maybe &amp;nbsp;necessary to use external languages that integrate via ServiceNow.&lt;/P&gt;&lt;P&gt;I’m not safe that work but I can found some tutorials that to use powerShell&lt;BR /&gt;&lt;BR /&gt;in ServiceNow, the best approach to do it is via clip&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0225.jpeg"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/461624iBF924D07242338BA/image-size/medium?v=v2&amp;amp;px=400" alt="IMG_0225.jpeg" title="IMG_0225.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/sjqutAvjXhY?si=I-wofqBrsD73xj7V" target="_blank"&gt;https://youtu.be/sjqutAvjXhY?si=I-wofqBrsD73xj7V&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:38:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346855#M1221038</guid>
      <dc:creator>Rafael Batistot</dc:creator>
      <dc:date>2025-08-08T07:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346863#M1221041</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do it by data import. Refer to below post which explain it by step by step:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Create a new data source by navigating to System Import Sets &amp;gt; Data Sources and clicking on New. Fill in the necessary details such as Name, Table Name, and File Extension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.servicenow.com/community/developer-forum/how-can-i-do-a-bulk-upload-of-attachments-into-servicenow-table/m-p/2517118" target="_self"&gt;Bult Upload Attachment - Community&lt;/A&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can upload attachment using API methods as well via REST. It requires tool like powershell or windows batch scripting for more detailed explanation follow the below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pathwayscg.com/loading-attachments-to-servicenow-from-a-local-machine-via-batch-scripting-in-windows/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;&lt;STRONG&gt;Bhimashankar H&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-------------------------------------------------------------------------------------------------&lt;BR /&gt;If my response points you in the right directions, please consider marking it as 'Helpful' &amp;amp; 'Correct'. Thanks!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:48:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346863#M1221041</guid>
      <dc:creator>Bhimashankar H</dc:creator>
      <dc:date>2025-08-08T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346864#M1221042</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;I don't think it's possible to pick a file directly from your local machine using a script. However, you could try storing the file in one of your organization's shared paths and then use your MID server to retrieve the file from that shared location into the instance.&lt;BR /&gt;&lt;/SPAN&gt;I've tried this, but you can give a try and see how it goes..&lt;BR /&gt;Regards,&lt;BR /&gt;Siva&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:50:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346864#M1221042</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-08-08T07:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346865#M1221043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me explain the requirement in more detail:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Open &lt;STRONG&gt;File Explorer&lt;/STRONG&gt; on your computer and navigate to a &lt;STRONG&gt;Network Folder&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Inside, there is a folder named &lt;STRONG&gt;Attachments&lt;/STRONG&gt;, which contains hundreds of files in various formats (PDF, JPG, CSV, Excel, etc.).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Each file name follows the format:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;incidentNumber_fileName&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;For example: INC123456_users.pdf&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;From the file name, we can identify the &lt;STRONG&gt;incident number&lt;/STRONG&gt;. The goal is to attach each file to its &lt;STRONG&gt;corresponding incident&lt;/STRONG&gt; in ServiceNow, based on the incident number in the file name.&lt;/P&gt;&lt;P&gt;This process should continue until all attachments in the folder have been processed.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:55:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346865#M1221043</guid>
      <dc:creator>Vishal_Jaiswal</dc:creator>
      <dc:date>2025-08-08T07:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346866#M1221044</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/662411"&gt;@J Siva&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you please share the steps with code.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:57:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346866#M1221044</guid>
      <dc:creator>Vishal_Jaiswal</dc:creator>
      <dc:date>2025-08-08T07:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346867#M1221045</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not possible.&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>Fri, 08 Aug 2025 07:57:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346867#M1221045</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-08-08T07:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346874#M1221046</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;Check the below article to import files form Mid sevrer.&lt;BR /&gt;&lt;A class="" href="https://www.servicenow.com/community/itom-articles/automated-data-import-using-mid-server-and-powershell/ta-p/2323991" target="_blank" rel="noopener"&gt;Automated Data Import - Using MID Server and PowerShell&lt;/A&gt;&lt;BR /&gt;Make sure that the file is stored in the Mid server host/shared path&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 08:03:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3346874#M1221046</guid>
      <dc:creator>J Siva</dc:creator>
      <dc:date>2025-08-08T08:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3347532#M1221177</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;Actually this is possible through MID server, PowerShell script, and ecc event queue. So, can you please help if you have an idea how to proceed?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2025 07:07:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3347532#M1221177</guid>
      <dc:creator>Vishal_Jaiswal</dc:creator>
      <dc:date>2025-08-09T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3347536#M1221178</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you go through my previous post, check out if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the last link copy, paste in search bar of browser. It has detailed steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;&lt;STRONG&gt;Bhimashankar H&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2025 08:34:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3347536#M1221178</guid>
      <dc:creator>Bhimashankar H</dc:creator>
      <dc:date>2025-08-09T08:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3347539#M1221180</link>
      <description>&lt;P&gt;If your attachments are named with the incident number at the start, you could write a script (like in Python) to scan your folder, parse the incident number from each file name, then upload or attach the file to the matching incident in your system via its API or interface. depends on what system you’re using for incidents though, what platform is it.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Aug 2025 07:54:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3347539#M1221180</guid>
      <dc:creator>ColtonsR</dc:creator>
      <dc:date>2025-08-24T07:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach file from a local machine to a particular record.</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3348021#M1221277</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/814001"&gt;@Vishal_Jaiswal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes this is possible, but only if the desktop is a mid server.&lt;/P&gt;
&lt;P&gt;you will have to write mid server script include or powershell script to fetch&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0817437" target="_blank" rel="noopener"&gt;How to import a CSV file from a MID Server&lt;/A&gt;&amp;nbsp;&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 03:12:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-attach-file-from-a-local-machine-to-a-particular-record/m-p/3348021#M1221277</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-08-11T03:12:36Z</dc:date>
    </item>
  </channel>
</rss>

