Need to insert multiple records in ServiceNow (bulk insert)

MarvinDS
Tera Contributor

Hi Community,

 

I have data from API, need to insert the records into a table, but using GlideRecord there is a loop needed.  Is there a way to insert bulk records at once instead of inserting single records?


Thanks!!

1 REPLY 1

Hetang Modi
Tera Contributor

I have been searching for the same for quite a while but haven't found a way.

However, you can attach your API data to a "Data Source" and then write your data from this attachment to the table you want to write to.

Note: the keys/columns in your data match to the "column name" of the table you want to write to, otherwise you may need to update your API data's keys to match the table's "column names".