Giter Site home page Giter Site logo

wictorwilen / spfxinteams Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 461 KB

Demo for Ignite 2018 session "Automate the creation of teams and channels in Microsoft Teams" THR2147

License: MIT License

JavaScript 24.56% TypeScript 55.22% CSS 5.28% Batchfile 11.21% HTML 3.72%
spfx msteams adaptivecards microsoftteams sharepoint sharepoint-framework

spfxinteams's Introduction

SharePoint Framework Web Part in Microsoft Teams demo

Works on my machine

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

spfxinteams's People

Contributors

wictorwilen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spfxinteams's Issues

Configuration pane doesn't load

I followed all the steps described to provision your example in my tenant. Everything behaves as expected except that when adding the app as a Tab in teams the config pane doesn't show up, any hint?

spfxissue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.