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

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

Hi @Pres,

 

Have you manage to solve your requirements?

If yes, please mark my response as ACCEPTED so that this thread can be closed and others can be benefited by this. 

 

Thanks & Regards,

Sharjeel 

Regards,
Muhammad

Thank you...

The solution seems viable. I would need to do some work for the folder structure parts mentioned but I am going to give it a go with a small set of records. 

Sounds Good. Please make sure to mark the response as CORRECT if the solution helps you in anyway to resolve your issue. 

 

Thanks & happy learning!

Sharjeel

Regards,
Muhammad