ADO.NET Provider for Microsoft Teams

Build 25.0.9434

SendMessage

Posts a message to a Teams channel, optionally including formatting, mentions, and embedded content.

Input

Name Type Required Description
TeamId String True Unique identifier of the team where the message is sent. Required to route the message to the correct Microsoft Teams group.
ChannelId String True Unique identifier of the channel within the team where the message is posted.
MessageId String False Unique identifier of the message to be updated. Used when modifying an existing message.
ContentType String False Format of the message content. Common values include text, html, and markdown.
Content String True Body of the message to be sent or updated in the specified channel, formatted according to the ContentType.
Importance String False Priority level of the message. Accepted values include low, normal, and high. The default value is normal.

The allowed values are normal, high, urgent.

Mention String False Comma-separated MentionText and MentionUserId pairs. For multiple mentions, use semicolons to separate each pair. Example: MentionText1, MentionUserId1; MentionText2, MentionUserId2.
Attachment String False Comma-separated AttachmentContentType and AttachmentContentUrl pairs. For multiple attachments, use semicolons to separate each pair. Example: AttachmentContentType1, AttachmentContentUrl1; AttachmentContentType2, AttachmentContentUrl2.

Result Set Columns

Name Type Description
Success String Indicates whether the message was successfully sent or updated. Returns true if the operation completed successfully, otherwise false.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434