Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Importing multiple files and attaching to records

Pres
Mega Guru

I have a large number of files from a previous system (Sharepoint) that need to be attached to records in ServiceNow. I basically have a Windows folder with all of the files that need to be attached (pdfs and docx mostly). As far as the ServiceNow table, there is a field that holds the correct filename that needs to be attached to the record. I am able to attach records one at a time but need to be able to automate the process as there are hundreds of records. I can get the record's sys_id and the file to be attached from the table but I don't know how to get the actual files into ServiceNow and then search through them to associate the correct attachment with the correct record.

1 ACCEPTED SOLUTION

MrMuhammad
Giga Sage

Hi Pres,

Bulk Loading Attachments to ServiceNow With PowerShell this Article can help you achieve your goal.

 

Please mark this ACCEPTED & HELPFUL, if it answered your question.

Thanks & Regards,
Sharjeel

Regards,
Muhammad

View solution in original post

5 REPLIES 5

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

I will suggest to take all sysid in on array and write a powershell script in which sys id and attachment will be mapped to each other. Then trigger a powershell from ServiceNow.

Thanks,
Ashutosh