Skip to content

Commit 0557660

Browse files
andrewconnellVesaJuvonen
authored andcommitted
update spfx+teams docs (SharePoint#3742)
- previously docs addressed the "sync to teams" functionality which is not operational - updated docs to be more descriptive on creating the Teams app manifest file - updated docs to be more descriptive on creating the Teams app package - updated docs to focus on the side-loading approach - updated docs to mention "Sync to Teams", but be explicit that this is (1) not operational & (2) not recommended at this time
1 parent 659ac3e commit 0557660

File tree

3 files changed

+186
-147
lines changed

3 files changed

+186
-147
lines changed

docs/spfx/integrate-with-teams-introduction.md

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Building Microsoft Teams Tabs using SharePoint Framework
33
description: You can build your Microsoft Teams tabs using SharePoint Framework and utilize the tooling
4-
ms.date: 03/14/2019
4+
ms.date: 04/04/2019
55
ms.prod: sharepoint
66
---
77

@@ -14,69 +14,64 @@ There are following benefits on using SharePoint Framework as the platform for y
1414
- The development model is similar to SharePoint Framework web parts
1515
- Technically any web part can be exposed as a tab in Microsoft Teams
1616
- You have difference scoping options on exposing your custom tab as a web part and tab in your tenant
17-
- Your tab will be executed in the context of the underlaying SharePoint site behind of the specific team. This means that you can take advantage of any SharePoint specific APIs or functionalities in your web part.
18-
17+
- Your tab will be executed in the context of the underlying SharePoint site behind of the specific team. This means that you can take advantage of any SharePoint specific APIs or functionalities in your web part.
1918

2019
## Development process
2120

2221
> [!IMPORTANT]
23-
> **Sync to Teams** functionality does not currently work and will be fixed within upcoming days. Please refer to [Creating a team manifest manually for a web part](./web-parts/guidance/creating-team-manifest-manually-for-webpart.md) to proceed for now and follow the steps in the 'Alternative deployment options' section of this article.
24-
25-
You can start developing Microsoft Teams tabs simply by using the SharePoint Framework 1.8 or later packages. High level steps to get started are as follows.
22+
> You may notice a menu item **Sync to Teams** in the App Catalog ribbon:
23+
>
24+
> ![Sync To Teams](../../../images/using-web-part-as-ms-teams-tab-sync-to-team.png)
25+
>
26+
> At this time this functionality is not fully implemented and is not the recommended way to deploy your SharePoint Framework web part to Microsoft Teams as a custom tab. This document will be updated when this functionality has been deployed across SharePoint Online. Until that time, the recommended approach is to install SharePoint Framework web parts as custom Microsoft Teams tabs using the side loading approach. Please refer to [Creating a team manifest manually for a web part](./web-parts/guidance/creating-team-manifest-manually-for-webpart.md) to proceed for now and follow the steps in the 'Alternative deployment options' section of this article.
2627
27-
1. Start the SharePoint Framework Yeoman generator
28+
You can start developing Microsoft Teams tabs simply by using the SharePoint Framework 1.8 or later packages. High level steps to get started are as follows:
2829

29-
```
30-
yo @microsoft/sharepoint
31-
```
30+
> [!NOTE]
31+
> Refer to the detailed steps to get started from the [Building Microsoft Teams tab using SharePoint Framework](web-parts/get-started/using-web-part-as-ms-teams-tab.md) tutorial which contains additional important details you must follow.
3232
33-
1. Create a solution with a client-side web part
34-
1. Add ```"TeamsTab"``` to the ```supportedHosts``` property of the web part manifest:
33+
1. Create a SharePoint Framework solution with a client-side web part
34+
1. Add `"TeamsTab"` to the `supportedHosts` property of the web part manifest:
3535

3636
```json
37-
"supportedHosts": ["SharePointWebPart","TeamsTab"],
37+
"supportedHosts": ["SharePointWebPart", "TeamsTab"],
3838
```
3939

4040
1. Deploy the web part using tenant-scoped deployment option to your SharePoint app catalog
41-
1. Synchronize your solution with teams by clicking the sync button in the ribbon with the solution highlighted
42-
43-
![Sync To Teams](../images/using-web-part-as-ms-teams-tab-sync-to-team.png)
44-
45-
> [!NOTE]
46-
> You can also follow the detailed steps to get started from the [Building Microsoft Teams tab using SharePoint Framework](web-parts/get-started/using-web-part-as-ms-teams-tab.md) tutorial.
41+
1. Create the Microsoft Teams app manifest file, **manifest.json**, and save it in the **./teams** folder of the solution
42+
1. ZIP the contents of the **./teams** folder; this is the Microsoft Teams app package
43+
1. Use the Microsoft Teams app package to side load the application in Microsoft Teams
4744

4845
## Deployment options
4946

50-
There are few different options on getting the developed Microsoft Teams tab deployed. As both SharePoint and Microsoft Teams have their own app catalog, deployment requires operations on both services. Visibility of the new functionality can be controlled by the deployment steps taken.
47+
There are multiple options to deploy Microsoft Teams tab. As both SharePoint and Microsoft Teams have their own app catalog, deployment requires operations on both services. Visibility of the new functionality can be controlled by the deployment steps taken.
5148

52-
If you want to make a solution available to all teams in your organization, the easiest is to use the steps above.
49+
### Tenant deployment
5350

54-
If you however want to make a solution only available to a specific team you will have to step specific manual steps as described below.
51+
In the future, Microsoft will implement a **Sync with Teams** button in the App Catalog ribbon that will automatically create the Microsoft Teams app manifest, app package and install it in the Microsoft Teams store. This will make your solution available for all users in your tenant and Microsoft Teams teams.
5552

56-
### Tenant deployment
57-
The easiest way to deploy a SharePoint Framework solution is by following the steps above: you synchronize your solution with the teams app catalog by means of clicking the ribbon button. This will make your solution available for all users in your tenant and Microsoft Teams teams.
53+
> [IMPORTANT]
54+
> At this time this functionality is not fully implemented and is not the recommended way to deploy your SharePoint Framework web part to Microsoft Teams as a custom tab. This document will be updated when this functionality has been deployed across SharePoint Online. Until that time, the recommended approach is to install SharePoint Framework web parts as custom Microsoft Teams tabs using the side loading approach.
5855

5956
### Alternative deployment options
6057

6158
There is an alternative way to deploy your solution which will for instance allow you to make a solution available only to one specific team in your tenant. Please refer to [Create Microsoft Teams manifest manually for a web part and deploy it to Microsoft Teams](./guidance/web-parts/creating-team-manifest-manually-for-webpart.md) how to create the manifest.
6259

63-
1. Locate the Teams folder in your project folder:
64-
65-
![Solution structure](../images/sp-teams-solution-structure.png)
60+
1. Build your SharePoint Framework solution the normal way:
6661

67-
1. Notice that there are 2 image files in there. Add the manifest file you created as described in [Create Microsoft Teams manifest manually for a web part and deploy it to Microsoft Teams](./web-parts/guidance/creating-team-manifest-manually-for-webpart.md) to this folder and call it ```manifest.json```.
62+
```sh
63+
gulp build
64+
gulp bundle --ship
65+
gulp package-solution --ship
66+
```
6867

69-
1. In the JSON above we inserted some placeholders. Replace them as follows (notice that placeholders can occur several times):
68+
1. Locate the **./teams** folder in your project folder:
7069

71-
| Placeholder | Value |
72-
|--------------|-------|
73-
| [YourWebPartTitle] | Enter the name of your package. For instance 'Leads'. |
74-
| [YourWebPartId] | Replace this with the id/guid of your web part. You can find this id in the manifest of the webpart. |
75-
| [YourDescription] | Replace this with the description of your solution. |
70+
![Solution structure](../images/sp-teams-solution-structure.png)
7671

77-
1. Build your solution the normal way using ```gulp bundle --ship``` and ```gulp package-solution --ship```
78-
1. After you added the manifest to the folder, zip the -contents- of the folder into a zip file. This means that the zip file should only contain the manifest.json and the 2 images.
79-
1. Add your solution to the app catalog and make sure to check ```Make this solution available to all sites in the organization```
72+
1. Notice that there are 2 image files in there. Add the manifest file you created as described in [Create Microsoft Teams manifest manually for a web part and deploy it to Microsoft Teams](./web-parts/guidance/creating-team-manifest-manually-for-webpart.md) to this folder and call it ***manifest.json**.
73+
1. After you added the manifest to the **./teams** folder, zip the contents of the folder into a zip file. This means that the zip file should only contain the manifest.json and the 2 images.
74+
1. Add your solution to the app catalog and make sure to select the option **Make this solution available to all sites in the organization** before selecting **Deploy**
8075

8176
### Turn on side loading of external apps in Teams
8277

@@ -103,7 +98,7 @@ In order to upload an app for a specific team, you will have to enable side load
10398
1. Click **Save**.
10499

105100
> [!NOTE]
106-
> The side loading configuation to be done only once in a tenant which you are using. More content on preparing your Office 365 tenant for Microsoft Teams development from the [Microsoft Teams developer documentation](https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-tenant#turn-on-microsoft-teams-for-your-organization).
101+
> The side loading configuration to be done only once in a tenant which you are using. More content on preparing your Office 365 tenant for Microsoft Teams development from the [Microsoft Teams developer documentation](https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-tenant#turn-on-microsoft-teams-for-your-organization).
107102

108103
1. Move to your Microsoft Teams instance by selecting **Teams** in the app launcher.
109104

@@ -120,7 +115,7 @@ In order to upload an app for a specific team, you will have to enable side load
120115
> [!NOTE]
121116
> If this setting is not available, side loading is not enabled in the tenant which you are using. Double check the settings from the tenant admin UIs.
122117

123-
1. Upload the zip file your created earlier from the **Teams** folder under your newly created solution and ensure that it's properly visible in the list of Apps. Notice how the custom image is visible with the description of the solution.
118+
1. Upload the Microsoft Teams app manifest file your created earlier from the **./teams** folder under your newly created solution and ensure that it's properly visible in the list of Apps. Notice how the custom image is visible with the description of the solution.
124119

125120
![Manage Team](../images/sp-teams-app-uploaded.png)
126121

@@ -134,11 +129,10 @@ In order to upload an app for a specific team, you will have to enable side load
134129

135130
![Add a tab](../images/sp-teams-add-a-tab.png)
136131

137-
1. Notice how you can parametrize the tab instance based on the exposed properties. Click **Save**
132+
1. Notice how you can parameterize the tab instance based on the exposed properties. Select **Save**
138133

139134
![Add a tab](../images/sp-teams-configure-tab.png)
140135

141-
142136
See following resources for additional details around the different options in both systems:
143137

144138
- [Upload an app package to Microsoft Teams](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/apps/apps-upload)
@@ -149,7 +143,7 @@ See following resources for additional details around the different options in b
149143
Page context in a web part has by default a reference to the Teams JavaScript SDK, so that you can easily get access on the Teams context when your web part is rendered as a tab.
150144

151145
```javascript
152-
this.context.microsoftTeams
146+
this.context.microsoftTeams
153147
```
154148

155149
> [!NOTE]

0 commit comments

Comments
 (0)