Extracts data from a SharePoint list using the Graph API and saves the data as a json file.
This application uses "Application Permissions" as opposed to "Delegated Permissions" in Azure AD.
- Create a file called config.js in the root of the project using config.js.example as a template.
- Replace ENTER_YOUR_CLIENT_ID with the client ID of your registered Azure application.
- Replace ENTER_YOUR_SECRET with a key generated on the Configure page of your app in the Microsoft Azure Management Portal.
- Replace ENTER_YOUR_TOKEN_ISSUING_ENDPOINT with the OAuth 2.0 token endpoint value found by clicking the View Endpoints button in the Azure Management Portal.
- Replace ENTER_YOUR_SITE_ID with your ID of the site where your list resides.
- Replace ENTER_YOUR_LIST_ID with the ID of the list you wish to extract the data from.
- Run
npm install
to install the app's dependencies. - Run
npm start
to run the app.
Note: This app will extract the data from the list and save it in a file called data.json in the root of the project.