Microsoft Teams Chat Message Post (API)
Posts a message to Microsoft Teams Chat using the API (Microsoft Graph REST API).
Download
2022-08-25 (C) Questetra, Inc. (MIT License)
https://support.questetra.com/addons/microsoftteams-chat-message-post/
The Addon-import feature is available with Professional edition.
Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.
Notes
- Get Chat ID
- For Chat
Between “…conversations/” and “?ctx=chat” in the URL to open the target chat in a Web browser: https://teams.microsoft.com/_?culture=ja-jp&country=JP&lm=deeplink&lmsrc= homePageWeb&cmpid=WebSignIn#/conversations/CHATID?ctx=chat - For Teams
Between “…threadId=” and “&ctx=channel” in the URL to open the target chat in a Web browser https://teams.microsoft.com/_?culture=ja-jp&country=JP&lm=deeplink&lmsrc= homePageWeb&cmpid=WebSignIn#/conversations/Workflow?threadId=CHATID&ctx=channel
- For Chat
- “Post Title” is only available for Teams, not for Chat
- “Post Message Body” can be specified in HTML format
- Regarding the settings for integration with Microsoft365-based services
- How to register applications on Microsoft365 (Azure Active Directory) side
- How to Setup HTTP Authentication on Questetra side
- “How to Output Files from Cloud-based Workflow Questetra to OneDrive”
- “2.2: OAuth settings on the Questetra side”
※ But the scope is https://graph.microsoft.com/Chat.ReadWrite offline_access
- “2.2: OAuth settings on the Questetra side”
- “How to Output Files from Cloud-based Workflow Questetra to OneDrive”
Capture

Appendix
You can embed a hyperlink to the process detail page by entering the following in ” Update Data” in preparation for the body of the submission message.
Link to Process