Need to insert multiple records in ServiceNow (bulk insert)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2023 12:03 AM
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!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 02:12 AM
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".