Is it possible to create a zap using zapier to create a meeting in the crm that includes an online meeting link? I can create meetings just fine using zapier but they don't auto create them as online, and I can't pull that meeting link in zapier.
I found some sort of functions in the crm settings that I believe were supposed to auto set meetings to be online. but I get the error "Variable 'dealId' is not defined. and I am not even sure if this the right path to take.
DealDetails = zoho.crm.getRecordById("Deals", input.dealId);
//info DealDetails;
startdate = ifnull(DealDetails.get("Contract_Start_Date"),"").toString("yyyy-MM-dd");
enddate = ifnull(DealDetails.get("Contract_End_Date"),"").toString("yyyy-MM-dd");
//THIS ALLOWS FOR ONLINE MEETING
online_meeting = map();
online_meeting.put("tool_name", "ZohoMeeting");
eventmap =map();
eventmap.put("Event_Title",ifnull(DealDetails.get("Deal_Name"),""));
eventmap.put("Who_Id",ifnull(DealDetails.get("Contact_Name"),"").get("id"));
eventmap.put("Owner",ifnull(DealDetails.get("Owner"),"").get("id"));
eventmap.put("What_Id",input.dealId);
eventmap.put("$se_module","Deals");
eventmap.put("Start_DateTime",startdate+"T09:00:00+05:30");
eventmap.put("End_DateTime",enddate+"T10:00:00+05:30");
eventmap.put("$meeting_details", online_meeting);
create1 = zoho.crm.create("Events", eventmap);
info eventmap;
info create1;