Import Set API - multiple records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 06:59 PM
Hi all,
I have built an import set API and am tring to update multiple records.
In API Explorar, I sent a JSON array like [{},{}], but only the first records was updated.
Does import set support JSON array?
Regards,
Ming
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 10:51 PM
Hi Ming,
I believe you have to loop through the array to create multiple record.
- Pradeep Sharma

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 11:02 PM
Hi,
Check those link this will help you
Let me know if this helps you.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 11:09 PM
you can't use Import Set API to import more than one record in one REST call. Unfortunately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 11:21 PM
I am trying to build a workaround for this. You can collaborate with me if you are interested.
Basic idea is to
1. Write a Scripted Rest API
2. From the Scripted Rest API code, try to create multiple records in the importset [kind of mimicking the importset api functionality]