Creating multiple records using mulitple JSON from REST API?

Anish16
Kilo Explorer

Can we create multiple incidents in servicenow through one rest api call maybe using multiple json? 
The api we are using is : 

POST /now/table/{tableName}

If it is possible how can we implement that? 

Was it possible in any of the previous versions?

2 REPLIES 2

Prateek kumar
Mega Sage

You can achieve this by using Scripted rest API. Please follow the below thread.

https://community.servicenow.com/community?id=community_question&sys_id=8a5803eddb1cdbc01dcaf3231f96...

 

-Thanks
Prateek kumar


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

That POST API which you are showing is one to one. if you want to do this you have to do this using Scripted REST API and JSON Object into an array.

Nice video to achieve this:

https://www.youtube.com/watch?v=eB6CeA8RCig


Thanks,
Ashutosh