Get channel by name action

The Get channel by name action in Microsoft Teams package retrieves a channel's ID using the Team Name/ID and Channel Name, facilitating interactions such as sending messages or accessing channel information. This action is essential for ensuring automations target the correct channel within a 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.
  • Specify the Team to which the channel belongs using the following options:
    • Team name: Specify the name of the Team.
    • Team ID: Specify the Team ID. To retrieve the Team ID, see Get team by name action

    You can add a string variable or add the input in plain text.

  • In the Channel name field, specify the name of the Channel. For example, Ops request.
  • In the Assign channel ID to variable field, store the retrieved channel ID in a string variable.