Attaching from a Creator form to the CRM
Hi all,
We're looking to send our Zoho Creator Form's attachment to the CRM's record it's creating without much success.
Looking at documentation, I'm doing the following:
1. Creating the "Accounts" record and getting the ID: accountID = createdAcct.get("id").toLong();
Everything works like a charm there. I am able to use that ID to create a Contact and a Deal afterwards too.
2. Trying to attach the file like this:
fileLink = "https://customerportalurl/file/instanceowner/applicationid/reportname/".concat(input.ID.toString()).concat("/Attach_File/download?filepath=/").concat(input.Attach_File);
file_object = invokeurl
[
url : fileLink
type :GET
];
attachToAcct = zoho.crm.attachFile("Accounts",accountID,file_object);
Nothing comes out of it; no "info" output comes out of it either. Workflow executes as if successful. I have tried to set the link and send it to e.g. the Description field on the Account, and when I click on it it downloads the file successfully, which makes me think the URL is fine. But then I wonder why it's not actually attaching it?
Can I have some help on this please? I've tried going to support too but I'm not getting an answer and we kind of need this asap. Maybe someone in the community can spot where I'm going wrong?
Thank you very much!