Skip to content

Instantly share code, notes, and snippets.

@jeznag
Created July 6, 2022 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeznag/8c4e7ce72c27a6e3917abd5a38b870ed to your computer and use it in GitHub Desktop.
Save jeznag/8c4e7ce72c27a6e3917abd5a38b870ed to your computer and use it in GitHub Desktop.
storing_sms_data_in_lead
message_record = zoho.crm.getRecordById("twiliosmsextension0__Sent_SMS",message_id);
if(lead_id != null)
{
update_payload = {"Last_SMS_received":message_record.get("Message")};
update_resp = zoho.crm.updateRecord("Leads",lead_id,update_payload);
}
if(contact_id != null)
{
update_payload = {"Last_SMS_received":message_record.get("Message")};
update_resp = zoho.crm.updateRecord("Contacts",contact_id,update_payload);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment