Skip to main content

Clear Calendar

AutomatR.GoogleCalendar.Activities.ClearCalendar

The "Clear Calendar" activity in AutomatR is part of the Google Calendar activities package, allowing you to clear all events from a specified Google Calendar. This activity is useful for scenarios where you need to reset or remove all events from a particular calendar.

Properties

NameDescription
Input
Calendar NameSpecifies the name of the calendar that you want to clear. String variables containing the calendar name. This is a required field.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before starting the activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

Validation

The activity performs validation checks to ensure that the Calendar Name is provided. It also handles scenarios where the specified calendar does not exist or if there are no events found in the calendar.

How to use:

  1. Drag and drop the "Clear Calendar" activity onto the workflow.
  2. Configure the properties by providing the necessary details such as Calendar Name.
  3. Optionally, configure the delay before starting the activity.
  4. Execute the workflow to clear all events from the specified Google Calendar.

Example:

Consider an example where the "Clear Calendar" activity is used to remove all events from a calendar named "Team Events":

Clear Calendar:
Calendar Name: "Team Events"
Delay: 2

In this example, the activity clears all events from the "Team Events" calendar, and there is a delay of 2 seconds before starting the activity.