CRM attaching file to field with function doesnt work
I am trying to upload a file to a field in CRM.
"Angebot" is the API-name of the upload field in CRM.
the response returns a success message, but no file is uploaded to the field.
file_variable = invokeurl
[
type :GET
];
response = invokeurl
[
type :GET
parameters:file_variable
connection:"crm2books"
content-type:"application/octet-stream"
];
response.setParamName("file");
response2 = zoho.crm.updateRecord("Potentials",604117000000712345,{"Angebot":response});
return response2;
Return:
- {"Modified_Time":"2023-11-22T12:31:22+01:00","Modified_By":{"name":"abc defg","id":"604117000000123456"},"Created_Time":"2023-09-27T11:03:57+02:00","id":"604117000000123456","Created_By":{"name":"bcd abcde","id":"604117000000123456"}}