https://github.com/wictorwilen/spfxinteams
Demo for Ignite 2018 session "Automate the creation of teams and channels in Microsoft Teams" THR2147
https://github.com/wictorwilen/spfxinteams
adaptivecards microsoftteams msteams sharepoint sharepoint-framework spfx
Last synced: 3 months ago
JSON representation
Demo for Ignite 2018 session "Automate the creation of teams and channels in Microsoft Teams" THR2147
- Host: GitHub
- URL: https://github.com/wictorwilen/spfxinteams
- Owner: wictorwilen
- License: mit
- Created: 2018-09-20T06:17:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-27T15:33:59.000Z (about 7 years ago)
- Last Synced: 2025-04-08T03:51:08.917Z (8 months ago)
- Topics: adaptivecards, microsoftteams, msteams, sharepoint, sharepoint-framework, spfx
- Language: TypeScript
- Size: 450 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SharePoint Framework Web Part in Microsoft Teams demo

**Link**: https://askwictor.com/spfxinteams
Demo solution for Microsoft Ignite 2018 that shows how a SharePoint Framework Web Part can be added as a Microsoft Teams tab.
> **NOTE** ALL CODE AND SETUP AND CONFIGURATION ARE SUBJECT TO CHANGE AND ARE SHARED ONLY FOR DEMONSTRATIONAL PURPOSES AT MICROSOFT IGNITE 2018. IT MIGHT NOT EVEN WORK IN YOUR TENANT SINCE IT ALSO HAS DEPENDENCIES ON TENANT PRE-RELEASE FEATURES.
## How to install and configure
Follow these instructions to install and configure the solution
1. Upload the .sppkg (SPFx package) into the SharePoint App Catalog and allow it to be installed in all site collections
2. Go to the new SharePoint Tenant Admin page and approve the API permission request (Group.ReadWrite.All)
3. Create a new Microsoft Teams team
4. Wait a minute until the SharePoint team site is provisioned
5. In the associated SharePoint team site create a list called `HostedAppConfigList`
6. Add a single line of text column to the list called `HostType`
7. Add a multi line of text column to the list called `HostData`
8. Create a new App in the site of the type Calendar
9. Add a few events to the calendar you just create
10. Add a new page to the site
11. Add the `Calendar` web part to the new page
12. Configure it to use the calendar app you created and verify that the Web Part works in SharePoint
13. In your Microsoft Teams team, go to settings and apps
14. Choose to upload a custom app, and select the `spfxinteams-teams.zip` file
15. Add a new Tab to the Team and choose the *SPFx in Teams* app
16. When configuring the Tab choose the calendar you created in the SharePoint site.
17. Wait a few seconds before you save the changes (if you get a message that says you need to configure the web part, remove the tab and try again, and this time wait an additional few seconds)
18. Verify that the Tab shows the events from the calendar
## How to build
To build and package the solutions, you need to run `npm install` in the *spfx* and *teams* folders respectively.
The *spfx* folder contains the SharePoint Framework solution and you build that as you normally do.
The *teams* folder contains a Microsoft Teams project and to package the solution you run `gulp zip` which creates the app package in the *package* folder. (Note; the `gulp manifest` task does not work with this demo as it validates the schema).
(C) Copyright Wictor Wilén, 2018