Deluge 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 the workflow section 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 the workflow section 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

 Supported Parameters

Following is a list of supported paramaters:

ParameterDescriptionAllowed values
evt*Event TitleString - Eg: BirthDay Party
evcEvent Content String - Eg: Invitation To BirthDay Party
allday*Whether All Day event or not Boolean - true/false
st*Event Start Time2010-11-27 14:00, If (allday==true) 2010-08-27
et*Event End Time2010-11-27 21:00, If (allday==true) 2010-08-27
rem*Whether to set Reminder or Not Boolean - true/false
remValueReminder Value(if rem=true)String - em05da [Email 5 days]
al02mi [Alert 2 mins]
po21hr [SMS 21 hour]
partComma separated Participants Email List String - Eg:abc@gmail.com,xyz@zohocorp.com
loc*LocationString - Eg: New York

Note

  • Params marked with an asterisk(*) are mandatory.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com