How to attach file from a local machine to a particular record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
My local machine folder(Documents) has a list of attachments with different types like PDF, JPG, etc.
The attachment file name starts with incidentNumber_fileName. For example: INC123456_users.pdf.
Requirement: I have to attach these attachments to their corresponding incident. How to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago - last edited a month ago
The bast way is drag and drop or may you follow those instructions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
I have to do this through a script because there are large no of attachments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Via script only work if the attachment is in ServiceNow, in the table sys_attachment
If your files are out serviceNow maybe necessary to use external languages that integrate via ServiceNow.
I’m not safe that work but I can found some tutorials that to use powerShell
in ServiceNow, the best approach to do it is via clip
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
what's the business requirement?
Users can always browse files from local machine and add to record using paper-clip icon.
why to have script for this?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader