Creator Help

Create Event in Google Calendar

Create an Event in Google Calendar

You can use Zoho Creator Form to collect information and populate it in Google Calendar as a new event using createEvent() Deluge task.

Create a single event

Syntax

singleEventResp = zoho.gapps.createEvent("calendar",singleEventParam);

Response Type: String
singleEventResp is the string containing response returned by Google Calendar.
singleEventParam is the map variable that holds the key,value pairs.

Sample Code

Sample script to create a single event in Google Calendar. You can add the script to On Add -> On Success block of the form.

singleEventParam = { "recurrence" : "false", "evc" : "content", "remvalue" : "al34mi", "evt" : "Event Name", "rem" : "true", "allday" : "false",
"loc" : "Chennai", "st" : "2012-03-01 12:30", "et" : "2012-03-06 23:00" };

Sample Response

unoq6vp8dn1pbm7pbcg0tuopp8

Create a multi event

Syntax

MultiEventResp= zoho.gapps.createEvents("calendar",MultiEventParam);

Response Type : List
MultiEventResp is the list containing response returned by Google Calendar.
MultiEventParam is the list variable that holds the key,value pairs.

Sample Code

Sample script to create a muti event in Google Calendar. You can add the script to On Add -> On Success block of the form.

MultiEventParam = List:Map();

MultiEventParam.add({ "recurrence" : "false", "evc" : "content", "remvalue" : "al34mi", "evt" : "Event Name 1", "rem" : "true", "allday" : "false", "loc" : "Chennai", "st" : "2012-03-10 12:30", "et" : "2012-03-15 23:00" });

MultiEventParam.add({ "recurrence" : "false", "evc" : "content", "remvalue" : "al34mi", "evt" : "Event Name 2", "rem" : "true", "allday" : "false", "loc" : "Chennai", "st" : "2012-03-20 12:30", "et" : "2012-03-28 23:00" });

MultiEventResp= zoho.gapps.createEvents("calendar",MultiEventParam);

Sample Response

pafkjnuapicu4r3t2nipionmkk, 3eekichldfk2rmhlg4ssojh8no

Top