You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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
Copy file name to clipboardExpand all lines: docs/spfx/integrate-with-teams-introduction.md
+36-42Lines changed: 36 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Building Microsoft Teams Tabs using SharePoint Framework
3
3
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
5
5
ms.prod: sharepoint
6
6
---
7
7
@@ -14,69 +14,64 @@ There are following benefits on using SharePoint Framework as the platform for y
14
14
- The development model is similar to SharePoint Framework web parts
15
15
- Technically any web part can be exposed as a tab in Microsoft Teams
16
16
- 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.
19
18
20
19
## Development process
21
20
22
21
> [!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
+
> 
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.
26
27
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:
28
29
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.
32
32
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:
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
-

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
47
44
48
45
## Deployment options
49
46
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.
51
48
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
53
50
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.
55
52
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.
58
55
59
56
### Alternative deployment options
60
57
61
58
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.
62
59
63
-
1. Locate the Teams folder in your project folder:
1. Build your SharePoint Framework solution the normal way:
66
61
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
+
```
68
67
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:
70
69
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. |
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**
80
75
81
76
### Turn on side loading of external apps in Teams
82
77
@@ -103,7 +98,7 @@ In order to upload an app for a specific team, you will have to enable side load
103
98
1. Click **Save**.
104
99
105
100
> [!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).
107
102
108
103
1. Move to your Microsoft Teams instance by selecting **Teams** in the app launcher.
109
104
@@ -120,7 +115,7 @@ In order to upload an app for a specific team, you will have to enable side load
120
115
> [!NOTE]
121
116
> 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.
122
117
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.
@@ -134,11 +129,10 @@ In order to upload an app for a specific team, you will have to enable side load
134
129
135
130

136
131
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**
138
133
139
134

140
135
141
-
142
136
See following resources for additional details around the different options in both systems:
143
137
144
138
- [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
149
143
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.
0 commit comments