240 likes | 256 Views
Learn how to develop comprehensive solutions using SharePoint Framework within Microsoft Teams. This educational series by Bob German, Partner Technical Architect, covers architecture review, integrating Graph API, posting to web services, and more.
E N D
Build end-to-end solutions usingSharePoint Framework inMicrosoft Teams Microsoft Teams Development Education Series Bob German Partner Technical Architect One Commercial Partner Program, Microsoft
Agenda Architecture review Teams Client SDK Graph API,SharePoint API,Custom web services Posting and deep linking Resources and Community
App runs on your web serveranywhere you want withany application stack Apps for Microsoft Teams Tabs (Team and Personal) Bots Connectors Messaging extensions Task Modules Activity feed integrations Outgoing web hooks .zip manifest.json App Packagedefines the app Uploadto Teams orPublish on App Source https://bit.ly/Apps4Teams
Apps for Microsoft Teams • Teams App (.zip) • Contains Teams manifest and icons • Upload to Teams or Store Tabs (Team and Personal) Any web server SharePoint Framework • SPFx Solution (.sppkg) • Contains SPFx manifest and optional JavaScript bundle(s) • Upload to SharePoint App Catalog, site, or Store Web Part YOUR WEB PAGE HERE JS Bundle(s) TeamsHostedApp.aspx Modern Team Site(part of O365 Group) Best when you have an existing web experience and hosting Best when you need a new web experience and hosting – esp. enterprise
Sample Web Part in Teams and SharePoint demo
Top 10 reasons SPFx in Teams rocks 10 No need to host a web site or page Reuse code in Teams and SharePoint Azure AD single sign-on built in
Microsoft Teams Teams Client SDK TeamsHostedApp.aspx(IFrame) SharePoint Framework handlesauthentication SDK is still useful to: • Get context (channel, entityId*, subEntityId*, groupId, isFullScreen, locale, teamId, teamName, more • Get deep link parameters (subEntityId, subEntityLabel, subEntityWebUrl) • Get tab instances owned by the app • Handle messages JS Connectors JS Lib https://sharepoint.microsoft.com/ … https://teams.microsoft.com/ ... * Used by a Teams app to maintain its state SharePoint uses the entity ID for the web part stateYou can use the subEntity ID for within your web part
Code walk-through Accessing the Teams Client SDKin an SPFx web part code
Top 10 reasons SPFx in Teams rocks 10 No need to host a web site or page Reuse code in Teams and SharePoint Azure AD single sign-on built in SharePoint handles the configuration page You know what Team and Channel you’re in with the Teams SDK
Office 365 Groups Microsoft Graph API Office 365 Groups Every Team has an Office 365 Group • A great place to store your application’s data: • Easy to find because it’s part of the group • Access from Graph API • Group members generally will have permission • Backed up and managed by O365 • Native app UI use saves coding • Many of these apps support information protection and compliance features
Code walk-through External web service Accessing the SharePoint native API Accessing the Graph API Accessing other Azure AD web services code
Top 10 reasons SPFx in Teams rocks 10 No need to host a web site or page Reuse code in Teams and SharePoint Azure AD single sign-on built in SharePoint handles the configuration page You know what Team and Channel you’re in with the Teams SDK Easy access to Microsoft Graph, SharePoint APIs Store data in the Office 365 group Manage apps centrally in SharePoint Admin Center
Connecting with the Conversation • Add to the conversation via • Graph API • Bots • Connectors • Maintain context using deep links
Code walk-through Posting via the Graph API Constructing a deep link code
Top 10 reasons SPFx in Teams rocks 10 No need to host a web site or page Reuse code in Teams and SharePoint Azure AD single sign-on built in SharePoint handles the configuration page You know what Team and Channel you’re in with the Teams SDK Easy access to Microsoft Graph, SharePoint APIs Store data in the Office 365 group Manage apps centrally in SharePoint Admin Center Deep linking allows passing context
Top 10 reasons SPFx in Teams rocks 10 No need to host a web site or page Reuse code in Teams and SharePoint Azure AD single sign-on built in SharePoint handles the configuration page You know what Team and Channel you’re in with the Teams SDK Easy access to Microsoft Graph, SharePoint APIs Store data in the Office 365 group Manage apps centrally in SharePoint Admin Center Deep linking allows passing context SharePoint Community
Tooling Up Tutorials
Get startedStart using Microsoft Teamstoday Get technical with Microsoft Teams Development Education series Play with hands-on-labs Join the Teamwork Solution Accelerator for Partners Access resources & supportGet Teams deployment & adoption support from FastTrack https://aka.ms/SuccessWithTeams Resources Next steps Teams Dev center: https://aka.ms/TeamsDeveloper Developer support: https://aka.ms/TeamsDevSupport Teams Dev docs: https://aka.ms/TeamsDevDocs