Skip to content

Latest commit

 

History

History
 
 

spfx-productivity-dashboard

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Getting Started with One Productivity Hub using Graph Toolkit with SPFx Sample

One Productivity Hub using Graph Toolkit with SPFx is a demo application that helps you keep track of your activities planned for the day. The application is built using the SharePoint Framework and runs in Microsoft Teams, Outlook, Microsoft 365 app, and SharePoint. It uses Microsoft Graph Toolkit to connect to Microsoft Graph and display data from Microsoft 365.

SPFxProductivityDashboard

This sample illustrates

  • How to build a SharePoint web part with the Microsoft Graph Toolkit.
  • How to build and deploy web parts with additional permission requests.

Prerequisite to use this sample

Minimal path to awesome

Deploy the app to Azure

Here are the instructions to run the sample in Visual Studio Code. You can also try to run the app using TeamsFx CLI tool, refer to Try sample with TeamsFx CLI

  1. Clone the repo to your local workspace or directly download the source code.
  2. Open the project in Visual Studio Code, click Provision in LIFECYCLE panel of Microsoft Teams Toolkit extension or open the command palette and select Teams: Provision. This step will create an app in Teams App Studio.
  3. Go back to Microsoft Teams Toolkit extension, click Deploy in LIFECYCLE panel or open the command palette and select Teams: Deploy.

    This step will build a SharePoint package (*.sppkg) under sharepoint/solution folder. The Teams Toolkit will automatically upload and deploy it to your tenant App Catalog site. Only tenant App Catalog site admin has permission to do it. If you are not the admin, you can create your test tenant following Setup your Microsoft 365 tenant.

  4. Go to your SharePoint Admin center. In the left-hand navigation, select Advanced and then API Access. You should see pending requests for each of the permissions requested in src\config\package-solution.json file. Select and approve each permission.

Launch the app in Teams

  1. Once deployment is completed, you can preview the app. In Visual Studio Code, select target environment and click Preview App in ENVIRONMENT panel to open a browser.

Further Reading

Version History

Date Author Comments
Aug 09, 2023 huihuiwu Onboard to Teams Toolkit
Dec 5, 2023 yuqzho Upgrade to SPFx 1.18.2

Feedback

We really appreciate your feedback! If you encounter any issue or error, please report issues to us following the Supporting Guide. Meanwhile you can make recording of your journey with our product, they really make the product better. Thank you!