Automating upload of an Account Image
Automating upload of an Account Image
Is it possible to upload an image to the Account_Image field in CRM?
I tried this to copy an existing image to another record to another but it did not work...
response = zoho.crm.getRecordById("Accounts", 000000000000000000);
imageFile = response.get("Record_Image");
update = {"Record_Image": imageFile};
response = zoho.crm.updateRecord("Accounts", 1111111111111111, update);
This did not work either (although admittedly the documentation for the
.getFileContent()
did say it returns junk from image files)...
fileVariable = invokeUrl
[
url: "https://... image.png"
type: GET
];
imageFile = fileVariable.getFileContent();
update = {"Record_Image": imageFile};
response = zoho.crm.updateRecord("Accounts", 11111111111111, update);
Very grateful for help