contDetails = zoho.crm.getRecordById("Contacts",contactId.toLong());
email = contDetails.get("Ryze_Username");
header_data = Map();
header_data.put("Content-Type","application/pdf");
file_object = invokeurl
[
url :"https://radiant-gorge-88984.herokuapp.com/reports/:email"
type :GET
headers: header_data
];
response = zoho.crm.attachFile("Contacts",contactId,file_object);
info file_object;
return response;
I do not get any error for this function.However, this function cannot send email to the url.
My expected url is https://radiant-gorge-88984.herokuapp.com/reports/example@gmail.com.
Moreover, can we use http://localhost:3000 in invoke url?
Thank you