This is a repo for democode of how to update different field valies in SharePoint using Microsoft Graph.
- Clone the repository to your computer
- In your CLI navigate inside the update-fields-app folder
- Run 'npm install'
- Update the msal config with your appId and tenantID.
- Update the graph url in the uploadingDocWithGraph.js file.
- Run 'npm run dev'
For more information about the code take a look at my blogposts:
Upload files to SharePoint with JavaScript using Microsoft Graph and Microsoft Authentication Library This blogpost describes the code related to authentication and uploading the file. It also shows you how to register your app and obtain your site-id - which you need to run the code.
How to update field values in SharePoint using Microsoft Graph. This blogpost describes how to update different field values in SharePoint using JavaScript and Microsoft Graph
Related repositories: Upload file to SharePoint using Microsoft Graph and Microsoft Authentication Library