How to Send Attachment to Contact and Account Both Same TIme by Trigger Convert Lead / Send Attachment By Deluge
CRMresponse = zoho.crm.getRelatedRecords("Attachments","Contacts",id);
info CRMresponse;
get_id = CRMresponse.toJsonList().getJSON("id");
info get_id;
file = invokeurl
[
url :"https://crm.zoho.com/crm/v2/Contacts/" + id.toLong() + "/Attachments/" + get_id
type :GET
connection:"zohocrm"
];
info file;
Contacts = zoho.crm.getRecordById("Contacts",id);
Contacts_Company = Contacts.get("Account_Name").getJSON("name");
Contacts_ID = Contacts.get("Account_Name").getJSON("id");
info Contacts_ID;
zoho.crm.attachFile("Accounts",Contacts_ID,file);
Comments
Post a Comment