contactIDstr = contactID.toString();
contactDetails = zoho.crm.getRecordById("Contacts",contactID.toString());
dealinfo = {
"Layout":{"name":"Money Mailer Deals Layout",
"id":"2384530000050829019"},
"Deal_Name":contactDetails.get("Account_Name").get("name"),
"Company_Name":contactDetails.get("Account_Name").get("name"),
"Contact_Name":contactID,
"Owner":contactDetails.get("Owner"),
"Franchisee":contactDetails.get("Original_Company"),
"Franchisee_ID":contactDetails.get("Franchisee_ID"),
"Franchisee_Owner":contactDetails.get("Franchisee_Owner"),
"Closing_Date":zoho.currentdate,
"Sales_Division":"Money Mailer",
"Stage":"Quality Check",
"Source":"Money Mailer appt",
"Account_Name":contactDetails.get("Account_Name").get("id")
};
info dealinfo;
response = zoho.crm.createRecord("Deals",dealinfo);
return "Deal Created";
Is there any way to invoke a url to that new record in this same function? I have a custom button made that is supposed to create this record and then navigate to it.
Thanks