Microsoft Teams

Frends.MicrosoftTeams.SendMessage / 2.0.0

Summary

Posts into a Teams channel, with mentions that genuinely notify people and attachments alongside the body.

Typical use — routing alerts to the team that owns them, where a mention is what turns a message into someone's problem

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Input parameters.

Name Type Default Example Description
Subject String – This is subject

The subject of the chat message in plain text. It can be empty.

BodyType BodyTypes Html BodyTypes.Html

The type of the message content.

Possible values:

  • Text: Plain text message content.

  • Html: HTML message content.

MessageContent String – This is a plain message, This is html message to <at id=\"0\">Jane Smith>/at<

The message content.

SetMentions Boolean False true

Indicates whether to include entities mentioned in the chat message.

MentionParameters MentionParameters[] – { [ 0, MentionText, UserDisplayName, ef1c916a-3135-4417-ba27-8eb7bd084193, [ foo, bar ], [ 1, MentionText2, UserDisplayName2, ef1c916a-3135-4417-ba27-8eb7bd084194, [ bar, foo ] }

The entities mentioned in the chat message. Supported entities are: user, bot, team, and channel.

SetAttachments Boolean False true

Indicates whether to add references to attached files, tabs, or meetings. The file must already be in SharePoint. See https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=csharp.

AttachmentParameters AttachmentParameters[] – { [ 1, reference, https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/foo.docx, foo ], [ reference, https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/bar.docx, bar ], }

References to attached files, tabs, or meetings.

An unhandled error has occurred. Reload 🗙
Reconnecting… Connection lost.