Can I insert more than one import set record using/consuming the native REST API for import sets?

Arturo3
Tera Contributor

I'm facing an scenario where an organization wants to use a REST web service living in Servicenow to create more than one asset in one call. Analyzing the capabilities of the REST API for import sets, I understand only import set record can be created through the "native" REST API.

I even created a javascript application that calls the REST API and creates one import set record but I haven't been able to create more than one import set record (two assets) in the same call. Any feedback will be really appreciated.

6 REPLIES 6

Thank you for the suggestion using the script REST API. Once the payload is received how would I then feed that into an Import Set and trigger the Transform Maps? Is it a simple as creating new records in the Import Set Table using GlideRecord?



I prefer REST for its simplicity but find the Import API too slow when called one record at a time. I haven't looked at the SOAP method yet.


amila
ServiceNow Employee
ServiceNow Employee

With the quebec we have added a new feature called REST Insert to address this issue.

Multiple. https://developer.servicenow.com/dev.do#!/reference/api/quebec/rest/c_ImportSetAPI