Created
July 6, 2022 10:08
-
-
Save jeznag/8c4e7ce72c27a6e3917abd5a38b870ed to your computer and use it in GitHub Desktop.
storing_sms_data_in_lead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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