youtube image
From YouTube: Sending messages to Microsoft Teams using Microsoft Graph from SharePoint Framework solution

Description

During this 13-minute Developer-focused example, David Ramalho overviews a simple web part for sending a message from a SharePoint page to a recipient’s mailbox or into a Microsoft Teams chat using Microsoft Graph. Conversation elements include send email, my profile information, target user’s principal name, get chat ID (determines if existing chat or creates new). Uses Microsoft Graph APIs, PnP People Picker, React hooks and code snippets found in Graph Explorer. This PnP Community demo is taken from the SharePoint Framework and JavaScript Special Interest Group (SIG) – Bi-weekly sync call recorded on March 25, 2021.

Demo Presenter: David Ramalho (Storm Technology) | @DavRamalho

Supporting materials:
• Article - Send a message to Microsoft Teams using Microsoft Graph in SPFx | https://sharepoint-tricks.com/send-a-message-to-microsoft-teams-using-microsoft-graph-in-spfx/
• Documentation - Message Teams User | https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-teams-message-user
• Graph Explorer – https://developer.microsoft.com/graph/graph-explorer

Learn more:
• Learn more about the Microsoft 365 Patterns and Practices community at: http://aka.ms/m365pnp
• Visit the Microsoft 365 Patterns and Practices community YouTube channel: https://aka.ms/m365pnp-videos