Fetch contact details (phone, mobile, email) and update custom fields in a task as a Task Field Validation activity.

Fetch contact details (phone, mobile, email) and update custom fields in a task as a Task Field Validation activity.

Hi Zoho Gurus,

We have added several fields to tasks to help streamline our sales and customer care operations.

I want to create a function that is triggered during field validation on a Task entry.  The function will fetch the associated contact record (using the Task's Contact) and fill in three custom fields on the Task for...
customer email -> task email
customer mobile -> task mobile
customer phone -> task phone

I cannot figure out the easiest way to do this via Deluge script.

Can someone please provide some sample code.

My key areas are:
1. how to get the contact id from the record being validated
2. how to fetch the associated contact and place the contents into a map variable, using the contact id 
3. how to update the three fields - email, mobile and phone - on the Task being validated.

Best regards,
Joe

      • Sticky Posts

      • How to Add Users to your Organization in ZohoMail?

        A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________