Build MS Teams Tab Using SharePoint Framework
Create Teams Tab using SPFx: In this post we will see how to add SPFx webpart to MS Teams tab. In this post we will reuse the excising SPFx solution which we created in this post=> SPFx CRUD using Rest API . & modify few changes for MS Teams. & Below is the Final Output. 2 Important Changes in SPFx Solution: 1. Webpart.Manifest.json: Under "supportedHosts": ["SharePointWebPart", "TeamsPersonalApp", "TeamsTab",], Add TeamsTab & Teams Personal App if it is not present already. 2. Component File(.tsx): Check for microsoftTeams.context present or not (If present we can implement code for Teams) if( t his.props.context.sdks.microsoftTeams != null){ var test = this.props.context.sdks.microsoftTeams.context; ...