attch file top creator record
when i copy a record to another module in zoho CRM, i use this to also pass the attachment of that record to the new one:
- id_original = crmid;
relatedrcords = zoho.crm.getRelatedRecords("Attachments","Contacts",id_original);
for each ele in relatedrcords
{
attachementId = ele.get("id");
downloadFile = invokeurl
[
url :"https://www.zohoapis.com/crm/v2/Contacts/" + id_original + "/Attachments/" + attachementId
type :GET
connection:"pdfs"
];
resp = zoho.crm.attachFile("UP_Recruitment",res.toLong(),downloadFile); }
how can i use sometime like that but instead to pass it from CRM to CRM, is CRM to creator, what i need is to attach the file of a crm record to a Creator Record???
i tried it with the Rest API but still cant figure it out