The CreatorCon Call for Content is officially open! Get started here.

How can I do a Bulk upload of attachments?

vkambham
Tera Expert

I need to migrate some change request data from another system. I have the change requests and their related attachment data ( CR, attachment name) in csv extracts. The attachments themselves are in a folder. I was planning to use import set to import the csv data but then I don't know how to handle the attachment files. What is the the best way to import these attachments and relate them to the change requests?

11 REPLIES 11

randrews
Tera Guru

i had a similiar situation with certs where the certificate is an attachment.. i filtered my list to show only the ones i needed .. exported the xml and imported and they worked fine... i would try that...



get the change list filtered to just the ons you need and export the xml..   import it and see if you got   your attachments...



if not try filtering the sys attachment table to just show those and that should work.


John VanBruggen
Giga Guru

This has been out here for a while, but you may want to try using PowerShell.


I uploaded a document with a working powershell script that you may find helpful.



Bulk Loading Attachments to ServiceNow With PowerShell


Check out my Consultant's Survival Guide
https://youtube.com/watch?v=zYi8KhP9SUk