Bulk Update functions (REST)
Fields
Field In JSON Request Object | Map To NetSuite Employee Field |
---|---|
annualbalance | custentity_pr_annual_leave_accrued |
annualavailable | custentity_pr_annual_leave_available |
personalbalance | custentity_pr_personal_leave_accrued |
personalavailable | custentity_pr_personal_leave_available |
longservicebalance | custentity_pr_lsl_accrued |
longserviceavailable | custentity_pr_lsl_available |
alternatebalance | custentity_pr_alt_leave_balance |
inlieubalance | custentity_pr_time_in_lieu_accrued |
Example
An example request and response is listed below, containing updates for two employees. One or more fields must be specified but it is not mandatory to submit all.
Request | Response |
---|---|
Bulk Update Request {"action":"function", "function":"bulkupdate", "recordtype":"employee", "data":[ {"id": "15857", "inlieubalance" : 15,"alternatebalance": 25}, {"id": "15856", "annualbalance" : 12} ]}Â | Bulk Update Response {"success":true, "data":[ {"success":true,"id":"15857"}, {"success":true,"id":"15856"} ],"processms":"6745"} |