Using Microsoft Graph to interact with item
Git branch
This section uses the https://github.com/PacktPublishing/Mastering-SharePoint-Development-with-the-SharePoint-Framework-/tree/chapter9/interact-with-list-data Git branch from the repository.
In the previous section, we saw how to show static data in the form customizer. Now, let’s see how we can interact with the data from the list (Products). We will use the Microsoft Graph API, as we did in Chapter 5, Building a SharePoint Web Part, for interaction with the list.
By the end of this section, we will be able to create an item in the Products list when the display mode is New, edit an existing item in the Products list when the display mode is Edit, and view an existing item in the Products list when the display mode is View.
The concepts are similar to those mentioned in Chapter 5, so please refer to the Using the Microsoft Graph API to get items section of that chapter for a detailed overview of the concepts...