简体   繁体   中英

Create invoices in bulk using NetSuite RESTLET API

Is there a way to create multiple invoices with a single POST request to the NetSuite REST API? I'm hoping there's a way to avoid sending thousands of individual requests.

My suggestion here would be to look into N/https module in Suitescripts.

The idea here is simple. You will try to pass data using a UserEvent Script, the same data which now you are passing using Postman (or some testing application).

//Add additional code 
...
var response = https.post({
 url: 'https://www.testwebsite.com',
 body: myPostDataObj
});
...
//Add additional code

You can use a FOR LOOP later for iterating and creating as much records as you desire.

Hope this helped. Let me know in case of issues below.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM