The Get team by name action in the Microsoft Teams package enables you to retrieve the Team ID by providing the Team name. The Team ID retrieved will enable you to perform further actions such as get channel by name and so on. This allows your automation to identify and work with the correct team.

Settings

  • Use the Session name field to select one of the following options:
    • Session name: Enter the name of the session you used in the Connect action.

      (Optional) Click the Insert a value icon to select an existing variable that you have used to store the Microsoft Teams session name.

    • Variable: Enter the name of the variable that you have used to store the session name.
  • In the Team name field, specify the team name you want to search for example, IT Ops Team.
    Note: This field is not case-sensitive, but the team name entered must match exactly. If there are multiple teams with similar names, we retrieve the first matching team name.
  • In the Assign team ID to variable field, store the retrieved Team ID in a string variable.

    For example, if you search for the team “IT Ops Team,” the action will return the Team ID: 3d4f16c2-8b5d-47a1-9a3d-56d7e1a2c8f5