To enable the use of API's to update fields in Salesforce i need to use the REST Patch API request.
Updating a single object is working using /services/data/vXX.X/sobjects;
But if i need to update multiple records i read i need ot use the composite request: services/data/vXX.X/composite/sobjects
The payload is a JSON input (also mentioned in the header in content-type) in the following format, formatting the payload is done via a formula to ensure the flexibility in the different Fields.
{"allOrNone" : true,
"records" : [{
"attributes" : {"type" : "OBJECTNAME" },
"id" : "IDXX" ,
"FIELD1" : "INPUT1",
"FIELD2" : "INPUT2"
}]
}
I've tested the solution and it is working in POSTMAN and in WORKBENCH but it isn't working in Alteryx.
Have searched the internet but i didn't get any answers.
Does somebody have this working (PATCH request on Salesforce using COMPOSITE request).
If so, could you help me to solve this?
I've also tried to build the JSON field via the JSON Build transformation but got stock in the nested fields (see example above).