Update Field in Contact Details
Is adding / setting a job in contact details obtainable?
I have been running around loop's around setting a custom field created in Zoho CRM Contact Details. The field is called "Field Jobs" field jobs is assigning the "Job" in the Jobs area to the contact detail. Though it seems that I can only physically assign the according job to the job that matches. I wanted this to be an automation process to assign this by a custom function through a workflow rule.
Here is some code below
- job = zoho.crm.getRecordById("Jobs",Jid);
- contact = zoho.crm.getRecordById("Contacts",Cid);
- contactSolarJob = contact.get("Solar_Jobs");
- // info job;
- // info contact;
- jobJson = job.getJson("Contact1").getJson("id");
- contactJson = contact.getJson("Solar_Jobs");
- info contactSolarJob;
- if(jobJson == Cid)
- {
- contactJson = job;
- contactJson = Jid;
- info "Status : Working";
- }
- else
- {
- info "Status: Failed";
- }