Using the For each team iterator
- Updated: 2025/08/21
Use the For each team iterator loop through all the Microsoft Teams teams that a user is a member of. This enables you to perform actions such as retrieving team details and accessing channels within an automation workflow. It facilitates automation of tasks across multiple teams, enhancing efficiency in managing or processing information.
Procedure
- Double-click or drag the Loop action from the Loop package in the Actions palette.
- Select the For each team option from the Iterator list.
- Use the Session name field to select one of the following
options:
- Session name: Enter the name of the session used
to open the presentation with the Connect
action.
(Optional) Click the Insert a value icon to select an existing variable that you have used to store the default session name.
- Variable: Enter the name of the variable that you have used to store the session name.
- Session name: Enter the name of the session used
to open the presentation with the Connect
action.
- In the Assign team details to variablefield, choose
either Multiple variables or Dictionary
variable to save the output:
- Multiple variables: Assigns each retrieved value
(for example, ID, name, description, channelsCount, membersCount, and
webURL) to a separate variable enabling you to map each team detail to a
specific variable. Do following steps for each variable:
- Click Add variable mapping.
- Enter the Key of the variable.
- In the Map to variable field, choose a variable where the data will be saved.
- Click Add for this data to be saved to the configured variable.
- Dictionary: stores all values in a dictionary object with key-value pairs.
- Multiple variables: Assigns each retrieved value
(for example, ID, name, description, channelsCount, membersCount, and
webURL) to a separate variable enabling you to map each team detail to a
specific variable. Do following steps for each variable: