• You should mention the number of dates to be display in the 'dateLimits' list.
• Add the the Initial set of time slots to be displayed for all the dates in 'staticTimeSlots' list.
• Mention the dates you wish to exclude from the list in the 'datesToExclude' list.
• If it is Week days ie., (Monday or Tuesday) you wish to exclude then mention the days in the 'daysToExculde' list.
- //Number of dates to display
- dateLimits = {"1","2","3","4","5","6","7","8","9","10"};
- //Static time slots that will be initially available for all days
- staticTimeSlots = {"10:00","12:00","15:00","17:00"};
- //Dates to exclude from the slots
- datesToExclude = {"02-04-2019"};
- //Days to exclude from the slot
- daysToExclude = {"Sunday","Saturday"};
To integrate with google calendar,
• Replace the existing one with your connection name
• Replace the calendar ID (if required.) By default, the events are created in the primary calendar of the synced Google account.
- cal = invokeurl
- [
- url :"https://www.googleapis.com/calendar/v3/calendars/Calendar-ID/events"
- type :GET
- connection:Google-calendar-connection-name
- ]
4. Then, copy the context handler script from the sample script link below and paste it in the Zobot Context handler section and make the following changes
• You should customise the email recipient address and the email subject and body content
- sendmail
- [
- from : zoho.adminuserid
- to : recipient-email-id
- subject : email-subject
- message : email-body
- ]