Following on my article of creating a task using Zoho Deluge and scheduling a call using Zoho Deluge, here's an article on creating a Meeting or an Event using Zoho Deluge.
Why?
Because at time of print, I couldn't find that much information on how to build up a JSON request to create a meeting (previously known as Event) in Zoho CRM. Here's a quick snippet of code to remind me.
How?
Similar to how to create a call or task, but with some variation:
copyraw
	
//
// initialize
m_ScheduleMeeting = Map();
//
// specify parent module
m_ScheduleMeeting.put("$se_module","Leads");
//
// all day meeting
m_ScheduleMeeting.put("All_day",false);
// 
// meeting owner/host ID (can see any record related to this meeting)
m_ScheduleMeeting.put("Owner",123456789012345678);
//
// related to what (in this example, a lead record but can be almost any kind of record)
m_ScheduleMeeting.put("What_Id",98765432109876543);
//
// the subject
m_ScheduleMeeting.put("Event_Title","TEST Consultation: Call with TEST LEAD");
//
// the description
m_ScheduleMeeting.put("Description","More info / agenda");
//
// the type
m_ScheduleMeeting.put("Type","Prospective Meeting");
//
// the meeting location
m_ScheduleMeeting.put("Venue","Online Meeting");
//
// the start time
m_ScheduleMeeting.put("Start_DateTime",zoho.currenttime.addBusinessDay(1).toString("yyyy-MM-dd'T'HH:mm:ss","America/New_York"));
//
// the end time
m_ScheduleMeeting.put("End_DateTime",zoho.currenttime.addBusinessDay(1).addMinutes(30).toString("yyyy-MM-dd'T'HH:mm:ss","America/New_York"));
//
// recurring pattern (this one sets to everyday from today)
m_Pattern = Map();
m_Pattern.put("RRULE","FREQ=DAILY;INTERVAL=1;DTSTART=2022-03-02");
m_ScheduleMeeting.put("Recurring_Activity",m_Pattern);
//
// send invitations to participants?
m_ScheduleMeeting.put("$send_notification",false);
// 
// set participants (contact, email, user, or lead)
m_Participant = Map();
m_Participant.put("type", "lead");
m_Participant.put("participant", 98765432109876543);
l_Participants = List();
l_Participants.add(m_Participant);
m_ScheduleMeeting.put("Participants", l_Participants);
//
// with a reminder 5 minutes before (eg. "10 mins", "1 hrs")
m_ScheduleMeeting.put("Remind_At","5 Mins");
//
// the meeting status
m_ScheduleMeeting.put("Status","Not Started");
//
// send request and create record
r_CreateMeeting = zoho.crm.createRecord("Events",m_ScheduleMeeting);
//
// output response (for debugging purposes)
info r_CreateMeeting;
	- //
 - // initialize
 - m_ScheduleMeeting = Map();
 - //
 - // specify parent module
 - m_ScheduleMeeting.put("$se_module","Leads");
 - //
 - // all day meeting
 - m_ScheduleMeeting.put("All_day",false);
 - //
 - // meeting owner/host ID (can see any record related to this meeting)
 - m_ScheduleMeeting.put("Owner",123456789012345678);
 - //
 - // related to what (in this example, a lead record but can be almost any kind of record)
 - m_ScheduleMeeting.put("What_Id",98765432109876543);
 - //
 - // the subject
 - m_ScheduleMeeting.put("Event_Title","TEST Consultation: Call with TEST LEAD");
 - //
 - // the description
 - m_ScheduleMeeting.put("Description","More info / agenda");
 - //
 - // the type
 - m_ScheduleMeeting.put("Type","Prospective Meeting");
 - //
 - // the meeting location
 - m_ScheduleMeeting.put("Venue","Online Meeting");
 - //
 - // the start time
 - m_ScheduleMeeting.put("Start_DateTime",zoho.currenttime.addBusinessDay(1).toString("yyyy-MM-dd'T'HH:mm:ss","America/New_York"));
 - //
 - // the end time
 - m_ScheduleMeeting.put("End_DateTime",zoho.currenttime.addBusinessDay(1).addMinutes(30).toString("yyyy-MM-dd'T'HH:mm:ss","America/New_York"));
 - //
 - // recurring pattern (this one sets to everyday from today)
 - m_Pattern = Map();
 - m_Pattern.put("RRULE","FREQ=DAILY;INTERVAL=1;DTSTART=2022-03-02");
 - m_ScheduleMeeting.put("Recurring_Activity",m_Pattern);
 - //
 - // send invitations to participants?
 - m_ScheduleMeeting.put("$send_notification",false);
 - //
 - // set participants (contact, email, user, or lead)
 - m_Participant = Map();
 - m_Participant.put("type", "lead");
 - m_Participant.put("participant", 98765432109876543);
 - l_Participants = List();
 - l_Participants.add(m_Participant);
 - m_ScheduleMeeting.put("Participants", l_Participants);
 - //
 - // with a reminder 5 minutes before (eg. "10 mins", "1 hrs")
 - m_ScheduleMeeting.put("Remind_At","5 Mins");
 - //
 - // the meeting status
 - m_ScheduleMeeting.put("Status","Not Started");
 - //
 - // send request and create record
 - r_CreateMeeting = zoho.crm.createRecord("Events",m_ScheduleMeeting);
 - //
 - // output response (for debugging purposes)
 - info r_CreateMeeting;
 
Category: Zoho :: Article: 807
	

			     
						  
                
						  
                
						  
                
						  
                
						  
                

Add comment