This is Part 1 of a blog post on how to add a tab on a Teams. A lot of this information is on the web, but I’ve brought a lot of the content into a single place with a GitHub code repository.
On 4 March 2016, news broke that Microsoft had considered bidding $8 billion for Slack, but that Bill Gates was against the purchase, stating that the firm should instead focus on improving Skype for Business, which made total sense as the digital workplace wanted more than just instant messaging and conference calls and $8 billion could be used as a lot of development hours on a massive upgrade to an existing product.
Microsoft has now introduced SharePoint Framework to customize SharePoint for a while and now there’s Teams customizations with SharePoint Framework 1.8. So, you can now have your code running in Teams using a Teams Tab.
This blog post explains how to create a SPFx project for Teams
Before you go further read these links:
Background reading: Overview of the SharePoint Framework
Steps To Create Basic SPFx Solution And Deploy On SharePoint Online
Open the command prompt. Create a directory for SPFx solution.
Yeoman generator will perform a scaffolding process to generate the solution.
Open the solution in the VS code editor.
SharePoint Framework 1.8 will come up with teams tab with default configurations to make use of the default image of our teams tab.
In order to make user of Teams in SharePoint Framework we need to include it in manifest.josn file.
Open manifest.josn file and add “TeamsTab” next to SharePoint WebPart in SuppotedHosts.
Add code below in the webpart.ts files
With the Project is done
Let’s start Deployment process
Use the App Catalog to make custom business apps available for your SharePoint Online environment
Issues that we ran in to while doing it:-
These are the stuff that we need to finish off before deployment.
Further Reading
Overview of the SharePoint Framework
Building Microsoft Teams Tabs using SharePoint Framework
Building Microsoft Teams tab using SharePoint Framework – Tutorial
Build your first SharePoint client-side web part (Hello World part 1)
Understand Yeoman – Good background basics
Scaffold projects by using Yeoman SharePoint generator