Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to mass upload attachments to ServiceNow

Richard_Li
Kilo Contributor

Hello, I am working on data migration from an older application to a newer one in ServiceNow. My current task is to upload PDFs to their appropriate records, each record can have more than one attachment associated with it.

I have these things: 

A custom table named Company Statements, containing a company_id column

2GB of attachments sitting in some folders

A spreadsheet with the following columns

  • Name of attachments
  • company_id
  • FileURL (ex. Documents\Statements\name_of_file.pdf)
  • UserID
  • Upload Date

I'm lost on how to proceed. How should I move forward with this?

Many thanks,
Richard

1 REPLY 1

Slava Savitsky
Giga Sage

There is a REST API for attachments. Give it a try.