sp-dev-fx-webparts/samples/angular-msgraph
Hugo Bernier 810a68ebee Updated contributors for readmes 2023-03-15 00:11:27 -04:00
..
.devcontainer added remaining containers 2022-02-16 21:47:07 -05:00
README-Localized Updated telemetry link 2023-03-12 21:16:15 -04:00
assets Changed docs links to learn 2022-10-24 09:42:45 -04:00
config Msgraph dev (#180) 2017-05-02 10:12:37 +03:00
src/webparts/msGraph Replaced let with var in angular-msgraph solving #220 (#226) 2017-06-12 08:53:50 +02:00
typings Msgraph dev (#180) 2017-05-02 10:12:37 +03:00
.editorconfig Fixed folder name and added tracking image for usage metrics 2017-02-11 02:24:40 +02:00
.gitattributes Fixed folder name and added tracking image for usage metrics 2017-02-11 02:24:40 +02:00
.gitignore added remaining containers 2022-02-16 21:47:07 -05:00
.npmignore Fixed folder name and added tracking image for usage metrics 2017-02-11 02:24:40 +02:00
.yo-rc.json Msgraph dev (#180) 2017-05-02 10:12:37 +03:00
README.md Updated contributors for readmes 2023-03-15 00:11:27 -04:00
gulpfile.js Fixed folder name and added tracking image for usage metrics 2017-02-11 02:24:40 +02:00
package.json Msgraph dev (#180) 2017-05-02 10:12:37 +03:00
tsconfig.json Msgraph dev (#180) 2017-05-02 10:12:37 +03:00
tslint.json Add tslint at the root of each SPFx project (#394) 2018-01-08 15:58:48 +02:00

README.md

page_type products languages extensions
sample
office-sp
ms-graph
javascript
typescript
contentType technologies services platforms createdDate
samples
SharePoint Framework
Microsoft Graph
SharePoint
AngularJS
2/16/2017 12:00:00 AM

Angular MS Graph Web Part Built with Angular v1.x

Summary

This is a sample MS Graph web part that connects to Microsoft Graph and pulls SharePoint information from your tenant. It will first pull the root site collection (currently a limitation by Microsoft Graph), then it will display all the lists associated with the site followed by all the items inside the list.

First Screen

Logged In

Root Site Collection

Lists in Root Site

Announcement List Items

Note: I currently only have models developed for the Announcements list. All other lists will currently generate errors.

Compatibility

⚠️ Important
Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.
Refer to https://aka.ms/spfx-matrix for more information on SPFx compatibility.

SPFx 1.0.0 Node.js v6 Compatible with SharePoint Online Compatible SharePoint 2019 Compatible with SharePoint 2016 (Feature Pack 2) Local Workbench Compatible Hosted Workbench Compatible Compatible with Remote Containers

Applies to

Contributors

Version history

Version Date Comments
2.0 April 19th, 2017 GA Release
1.0 February 6th, 2017 Initial release

Configuration Bliss

  • clone this repo
  • in the command line run:
  • npm i typings -g
  • npm i
  • `gulp serve

Register the application

  1. Sign into the App Registration Portal using either your personal or work or school account.

  2. Choose Add an app.

  3. Enter a name for the app, and choose Create application.

    The registration page displays, listing the properties of your app.

  4. Copy the Application Id. This is the unique identifier for your app.

  5. Under Platforms, choose Add Platform.

  6. Choose Web.

  7. Make sure the Allow Implicit Flow check box is selected, and enter http://{Location of SP Workbench} as the Redirect URI.

  8. Choose Save.

Configuring the App

  1. Replace the aad and redirect_uri placeholder values with the application ID and redirect url of your registered Azure application in the GraphHelper.ts file Under src -> angularMsGraph -> GraphHelper.ts

Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

If you're having issues building the solution, please run spfx doctor from within the solution folder to diagnose incompatibility issues with your environment.

You can try looking at issues related to this sample to see if anybody else is having the same issues.

You can also try looking at discussions related to this sample and see what the community is saying.

If you encounter any issues while using this sample, create a new issue.

For questions regarding this sample, create a new question.

Finally, if you have an idea for improvement, make a suggestion.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.