Microsoft Teams

Read, write, and create messages

Configuration

Read Chat Messages

Operation
Read Chat Messages
Microsoft Account*
Select Microsoft account
Select Chat
Select a chat
Chat ID
Enter chat ID
Read Chat Messages (microsoft_teams_read_chat)

Read content from a Microsoft Teams chat

Input
ParameterTypeRequiredDescription
chatIdstringYesThe ID of the chat to read from
includeAttachmentsbooleanNoDownload and include message attachments (hosted contents) into storage
Output
ParameterTypeDescription
successbooleanTeams chat read operation success status
messageCountnumberNumber of messages retrieved from chat
chatIdstringID of the chat that was read from
messagesarrayArray of chat message objects
attachmentCountnumberTotal number of attachments found
attachmentTypesarrayTypes of attachments found
contentstringFormatted content of chat messages

Write Chat Message

Operation
Write Chat Message
Microsoft Account*
Select Microsoft account
Select Chat
Select a chat
Chat ID
Enter chat ID
Message*
Enter message content
Attachments
Upload files to attach
File Attachments
Reference files from previous blocks
Write Chat Message (microsoft_teams_write_chat)

Write or update content in a Microsoft Teams chat

Input
ParameterTypeRequiredDescription
chatIdstringYesThe ID of the chat to write to
contentstringYesThe content to write to the message
filesfile[]NoFiles to attach to the message
Output
ParameterTypeDescription
successbooleanTeams chat message send success status
messageIdstringUnique identifier for the sent message
chatIdstringID of the chat where message was sent
createdTimestringTimestamp when message was created
urlstringWeb URL to the message

Read Channel Messages

Operation
Read Channel Messages
Microsoft Account*
Select Microsoft account
Select Team
Select a team
Team ID
Enter team ID
Select Channel
Select a channel
Channel ID
Enter channel ID
Read Channel Messages (microsoft_teams_read_channel)

Read content from a Microsoft Teams channel

Input
ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team to read from
channelIdstringYesThe ID of the channel to read from
includeAttachmentsbooleanNoDownload and include message attachments (hosted contents) into storage
Output
ParameterTypeDescription
successbooleanTeams channel read operation success status
messageCountnumberNumber of messages retrieved from channel
teamIdstringID of the team that was read from
channelIdstringID of the channel that was read from
messagesarrayArray of channel message objects
attachmentCountnumberTotal number of attachments found
attachmentTypesarrayTypes of attachments found
contentstringFormatted content of channel messages

Write Channel Message

Operation
Write Channel Message
Microsoft Account*
Select Microsoft account
Select Team
Select a team
Team ID
Enter team ID
Select Channel
Select a channel
Channel ID
Enter channel ID
Message*
Enter message content
Attachments
Upload files to attach
File Attachments
Reference files from previous blocks
Write Channel Message (microsoft_teams_write_channel)

Write or send a message to a Microsoft Teams channel

Input
ParameterTypeRequiredDescription
teamIdstringYesThe ID of the team to write to
channelIdstringYesThe ID of the channel to write to
contentstringYesThe content to write to the channel
filesfile[]NoFiles to attach to the message
Output
ParameterTypeDescription
successbooleanTeams channel message send success status
messageIdstringUnique identifier for the sent message
teamIdstringID of the team where message was sent
channelIdstringID of the channel where message was sent
createdTimestringTimestamp when message was created
urlstringWeb URL to the message

Usage Instructions

Integrate Microsoft Teams into the workflow. Can read and write chat messages, and read and write channel messages. Can be used in trigger mode to trigger a workflow when a message is sent to a chat or channel.

Notes

  • Category: tools
  • Type: microsoft_teams