Does REST api model supports bulk insert?

prabhakarna_gur
Kilo Contributor

Hi All,

I'm doing an experiment to insert multiple records into an servicenow table. Below are the steps I did,

1. Created and import set table.

2. Created an transform mapscript to load the data to servicenow production table.

3. Posted the data via REST model as well as from SOAP model.

SOAP model successfully inserts all the records posted but unfortunately REST model doesn't . Please help me with example code or any document explaining the same.

Thanks in advance,

Prabhakaran.

2 REPLIES 2

Rushit Patel2
Tera Guru

Hi,



when u say rest REST doesn't load the data, is it giving some error? can you explain more? and from where you are making rest calls? rest API exlorerer?


Hi Rushit,



It is not throwing any error. When making calls with multiple records only first JSON object gets inserted and rest of them are excluded.


Not making calls through rest API explorer. Im making REST call through "Advanced REST Client Application".



Screen Shot 2015-12-16 at 4.13.55 PM.png




Below is my SOAP request which works perfectly.



Screen Shot 2015-12-16 at 4.33.54 PM.png


Thanks,


Prabhakaran G