Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Import Set API - multiple records

PhoenixMing0912
Giga Expert

Hi all,

I have built an import set API and am tring to update multiple records.

In API Explorar, I sent a JSON array like [{},{}], but only the first records was updated.

Does import set support JSON array?

 

Regards,
Ming

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee

Hi Ming,

I believe you have to loop through the array to create multiple record.

 

- Pradeep Sharma

ARG645
Tera Guru

you can't use Import Set API to import more than one record in one REST call. Unfortunately.

I am trying to build a workaround for this. You can collaborate with me if you are interested.

Basic idea is to

1. Write a Scripted Rest API

2. From the Scripted Rest API code, try to create multiple records in the importset  [kind of mimicking the importset api functionality]