Basic Mass Update deluge schedule not working
I'm trying to create a schedule that will 'reset' a single field to 0 every morning - so that another schedule can repopulate with the day's calculation. I thought this would be fairly simple but I can't work out why this is failing :
1) I'm based in UK so am using the Eu endpoint
2) The field is a standard currency with no formula or dependencies
3) The CVID is for my main All Account view
4) My connection has all the scopes for MassUpdate selected
- void schedule.Sales_Rollup_Reset()
- {
- dataMap = Map();
- dataMap.put("Sales_Invoice_Value_12", 0);
- dataList = List();
- dataList.add(dataMap);
- requestMap = Map();
- requestMap.put("data", dataList);
- requestMap.put("cvid", "2726580000000XXXXX");
- response = invokeurl
- [
- url :"https://www.zohoapis.eu/crm/v8/Accounts/actions/mass_update"
- type :POST
- body : requestMap.toString()
- headers : {"content-type":"application/json"}
- connection : "MYCONNECTION"
- ];
- info response;
- }
info response gives me :
{"data":[{"code":"INVALID_DATA","details":{"api_name":"Sales_Invoice_Value_12","json_path":"$.data[0].Sales_Invoice_Value_12"},"message":"This field cannot be updated in the Mass Update","status":"error"}]}
I welcome any insight !