- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 08:56 PM
I was trying to perform batch insert operation for my custom table using Curl. Accoring to ServiceNow doc therir is possibility using "Table API" and "job Schedule".but still not getting exact solution.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2020 12:47 AM
Can't you just loop the curl command for each record then?
Or do you want to POST multiple records at once? In this case, it's possible for ServiceNow to receive JSON data and have Scripted REST API. The problem would be timeout if simple Scripted API is used with many records.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 09:16 PM
Not curl but it's possbile to setup a schedule in ServiceNow to do import.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 10:30 PM
Thanks for the suggestion hozawa.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 10:16 PM
Hello,
You can access your tables through REST if you do a couple things:
- Make sure the table has 'Allow access to this table via web services' checked in the Application Access tab (screenshot below)
- Send a POST call to the table using credentials of a user with proper access controls (if you use a user with 'admin' that'll be alright for sure). You can get the structure of the call and code actually by looking at the REST API Explorer (search that in the navigator). Use 'now', 'Table API', latest, and choose the table you want. It'll give you curl commands on the bottom as well as a couple others.
Hope this helps,
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 10:28 PM
Hi Ben Carlsten,
Thanks for the explanation,Its really help me.
Now I able to perfrom insert operation through "curl".Does it possible to insert multiple records using single "curl" using this approach.Do you have any idea about this?