insert multiple records using table api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2017 02:53 PM
Is there a way to insert multiple records by sending a huge json object with an array of records through external script using table APIs ??
- Labels:
-
Best Practices
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2017 02:57 PM
Sample payload I'm trying to send -
{
'records': [{
'field1': 'val1',
'field2': 'val2'
},
{
'field1': 'val3',
'field2': 'val4'
},
{
'field1': 'val5',
'field2': 'val6'
}]
}
I want this to create three records in a table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2017 02:59 PM
Hi,
Below post should provide you resolution
Can we send multiple records to Service Now within a single REST request?
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2017 03:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2024 12:28 AM
Hi,
If you prefer not to use the Import Sets, you can try the ServiceNow Batch API, which works with the Table API to insert multiple records.
The Batch API reduces client-server overhead but isn’t suitable for parallel processing. Long requests may exceed the max transaction time and fail.
Best,
Roberto