Microsoft Teams#
Use the Microsoft Teams node to automate work in Microsoft Teams, and integrate Microsoft Teams with other applications. Ensemble has built-in support for a wide range of Microsoft Teams features, including creating and deleting, channels, messages, and tasks.
On this page, you'll find a list of operations the Microsoft Teams node supports and links to more resources.
Credentials
Refer to Microsoft credentials for guidance on setting up authentication.
Basic Operations#
- Channel
- Create a channel
- Delete a channel
- Get a channel
- Get all channels
- Update a channel
- Channel Message (Beta)
- Create a message
- Get all messages
- Task
- Create a task
- Delete a task
- Get a task
- Get all tasks
- Update a task
Example Usage#
This Pathway allows you to create, update and send a message to a channel in Microsoft Teams. This example usage Pathway would use the following nodes. - Start - Microsoft Teams
1. Start node#
The start node exists by default when you create a new workflow.
2. Microsoft Teams node (create: channel)#
- First of all, you'll have to enter credentials for the Microsoft Teams node. You can find out how to do that here.
- Select the team that you want to use from the Team ID dropdown list.
- Enter a name for the channel in the Name field.
- Click on Execute Node to run the node.
3. Microsoft Teams1 node (update: channel)#
- Select the credentials that you entered in the previous node.
- Select 'Update' from the Operation dropdown list.
- Click on the gears icon next to the Team ID field and click on Add Expression.
- Select the following in the Variable Selector section: Nodes > Microsoft Teams > Parameters > teamId. You can also add the following expression:
{{$node["Microsoft Teams"].parameter["teamId"]}}
- Click on the gears icon next to the Channel ID field and click on Add Expression.
- Select the following in the Variable Selector section: Nodes > Microsoft Teams > Output > JSON > id. You can also add the following expression:
{{$node["Microsoft Teams"].json["id"]}}
- Click on the Add Field button and select 'Name' from the dropdown list.
- Enter a new channel name in the Name field.
- Click on Execute Node to run the node.
4. Microsoft Teams2 node (create: channelMessage)#
- Select the credentials that you entered in the previous node.
- Select 'Channel Message (Beta)' from the Resource dropdown list.
- Click on the gears icon next to the Team ID field and click on Add Expression.
- Select the following in the Variable Selector section: Nodes > Microsoft Teams > Parameters > teamId. You can also add the following expression:
{{$node["Microsoft Teams"].parameter["teamId"]}}
- Click on the gears icon next to the Channel ID field and click on Add Expression.
- Select the following in the Variable Selector section: Nodes > Microsoft Teams > Output > JSON > id. You can also add the following expression:
{{$node["Microsoft Teams"].json["id"]}}
- Select 'Text' from the Message Type dropdown list.
- Enter a message in the Message field.
- Click on Execute Node to run the node.