// customization block:
// replace your client id and api key here
// you can find the client id and api key in Ideolve console - Profile - Connect to other apps - Select Zoho CRM - choose tab : Configure ZohoCRM
connectorClientId = "replace your client id here"
apiKey = "replace your api key here"
event = zoho.crm.getRecordById("Events",meetingId);
notetext = "Meeting
Created By: " + event.get("Created_By") + "
Modified By: " + event.get("Modified_By") + "
All_day: " + event.get("All_day") + "
Created Time: " + event.get("Created_Time") + "
Modified Time: " + event.get("Modified_time") + "
Participents: " + event.get("Participants") + "
From: " + event.get("Start_DateTime") + "
To: " + event.get("End_DateTime") + "
Location: " + event.get("Venue") + "
Title: " + event.get("Event_Title") + "
Description: " + event.get("Description") + "
Contact: " + event.get("Who_Id") + "
Checkin Status: " + event.get("Check_In_Status") + "
Approval State: " + event.get("$approval_state");
header = {"event-origin":"ZohoCRM","event-type":"AddComment","connector-client-id":connectorClientId,"x-api-key":apiKey,"Content-Type":"application/json"};
bodyMp = {"notehtmltext":notetext,"leadNo":AccountId.toString(),"module":"Accounts"};
response = invokeurl
[
url :"https://api.ideolve.com/v3/connector/event"
type :POST
parameters:bodyMp.toString()
headers:header
];
info response;