How can v send 500 employees payload through postm...
# suitescript
p
How can v send 500 employees payload through postman ..As restlet contains 5000 governor units ...hw is it possible
n
If you don't have the governance, break down your request in to smaller chunks or consider getting your RESTlet to offload the burden on to another script, perhaps a scheduled script or Map/Reduce.
z
…. or create CSV Import task and send data to them to import/update
👍 2
Copy code
var mappingField = "custimport_currency_exchange_rates_new";

var scriptTask = task.create({
	taskType : task.TaskType.CSV_IMPORT
});
.......
scriptTask.importFile = currencyString.join("\n");
var csvImportTaskId = scriptTask.submit();

var csvTaskStatus = task.checkStatus({
	taskId : csvImportTaskId,
});