The For each event in a calendar
iterator enables automation developers to loop through events in a specified calendar. This
iterator is ideal for workflows that require reading, processing, or validating multiple
calendar events dynamically.
About this task
The For each event in a calendar iterator uses the active session
and supports filtering of events based on the following criteria:
- Calendar name
- Event title
- Attendees
- Start Date or Time
- End Date or Time
For each event retrieved, the iterator can return detailed properties,
including:
- Summary
- Start date
- Location
- Attendees If access is available)
Procedure
-
Double-click or drag the Loop
action from the Loop
package in the
Actions
palette.
-
Select the For each event in a calendar option from the
Iterator list.
-
Use the Session name field to select one of the
following tabs:
- Session name: Enter the session name that you
have used in the Connect
action of the Apple Calendar package.
- Variable: Enter the variable that you have used
to store the Apple Calendar session name.
-
In the Calendar name field, enter the name of the
calendar to iterate event.
-
In the Title field, enter the name
of the title to filter event.
-
In the Invitees field, enter the
list of invitees to filter event.
-
Use the Start date-time and End
date-time drop-down menus to select an existing start and end
date, and time for the calendar event.
If there is not start and end time available, click the Create
variable icon to create a Datetime variable.
-
Use the Assign the current value to variable
option to assign the value to a variable using one of the following
options:
- Multiple variables: Click Add variable
mapping button to associate each dictionary key with a
variable.
Use this option to avoid using actions to extract the
dictionary values.
- Dictionary: Insert or create a dictionary
variable.
Dictionary contains the output variables and values in
key-value pairs. While creating a variable, you can click the
Create variable icon to create a Datetime
variable. The variable can be accessed using the corresponding
key.