Creating CRM Task from Creator application
For certain requirements, there may be a need for creating a ZohoCRM task from your Creator applications. This post is about using a Creator form to create a CRM Task.
Below is a simple To Do form which creates a CRM Task for each record added.
In the above form Client is a CRM Field that refers a Contact Module. Refer this post for including CRM modules in Creator form
Below is the code snippet that should be written in the on-Success action of the form to create a CRM Task
- taskinfo = {
- "Subject" : input.Subject_field,
- "Send Notification Email" : true,
- "Description" : input.Description,
- "Status" : "Open",
- "CONTACTID" : input.Customer1_ID,
- "Due Date" : input.Due_Date
- };
- task = zoho.crm.create("Tasks", taskinfo);