Schedule 200 calls for contacts with a Button based on the view that the button is in
Hi Everyone
Hopep you are well.
I need some help nailing this code down.
I need to create a butotn that generates 200 calls for contacts. The button will be placed in the contacts module and will need to generate the calls for the contacts based on the custom view that it is currently in.
Below is the code I am using the to schedule the calls, I am battling to figure out how to point it to the view it is currently in
- contactList = zoho.crm.getRecords("Contacts",1,1,{"cvid":"6101631000000087529"});
- for each contact in contactList
- {
- mp = Map();
- contactDetails = zoho.crm.getRecordById("Contacts",contactId);
- acctname = ifnull(contactDetails.get("Account_Name"),"");
- if(acctname != "")
- {
- acctid = acctname.get("id");
- accountDetails = zoho.crm.getRecordById("Accounts",acctid);
- mp.put("$se_module","Accounts");
- mp.put("What_Id",acctid);
- }
- mp.put("Subject","compcallpurpose");
- mp.put("Call_Purpose","compcallpurpose");
- mp.put("Owner",zoho.loginuserid);
- mp.put("Call_Type","Outbound");
- mp.put("Who_Id",contactId);
- mp.put("Call_Start_Time",today);
- // mp.put("$which_call","ScheduleCall");
- create = zoho.crm.createRecord("Calls",mp);
- }
- return "";
Sticky Posts
Extension pointers for integrating Zoho CRM with Zoho products #8: Upload and manage Zoho Workdrive folders and files from within Zoho CRM
Keeping records on your customers and business prospects is essential for tracking data, conducting follow-ups, and running a business smoothly. When you use two separate applications, and store relevant data in each, checking and tracking data becomes
Extension pointers: Handle cases with personalized solutions using custom actions
In our last post, we detailed the steps involved in creating a custom action and the workflow from the developer and end user's side. Now let's look at a working example of how we can create a custom action and implement it in a Zoho CRM account to make
Extension pointers - Simple yet significant pointers #13: On change of field value for CRM variables
CRM variables provide global access to a variable across an entire extension. They also help in the storage of user-specific data provided by the user at the time of installation, which can later be fetched to perform data functionalities. Additionally,
Extension pointers: Extend end-user benefits and allow personalization by implementing extensions with custom actions
From our earlier post on custom actions, we know that we can create templated actions, share them with end users, and allow them to reuse those actions to achieve personalized outcomes. In this post, we'll look at how custom actions make it easy for users
Extension pointers - Simple yet significant pointers #12: Functions for Zoho CRM extensions
Functions are essential in achieving logical functionality for an extension. You can easily code your functions in Deluge using drag-and-drop tools to meet your requirements. How to create functions for Zoho CRM extensions in Sigma Go to Sigma and select