15 Apr, 2024
Posted on 15 Apr, 2024 by Ankit Gore, Posted in Azure Function
In this blog, we will explore how to create SharePoint list items using the Microsoft Graph API and Azure Functions locally.
Many developers prefer a local development experience. When you use Functions, using your favorite code editor and development tools to create and test functions on your local computer becomes easier. Your local functions can connect to live Azure services, and you can debug them on your local computer using the full Functions runtime.
You can find more details about this over here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-local
Now, create an item using the request body inside the foreach loop. var result = graphClient.Sites["Test.sharepoint.com%2Cf664ea30-3595-405a-9883-ec39f450601e%2Cd3eff99d-a1e5-4757-b24a-a78e373d2a74"].Lists["f93896fc-0672-4844-97a7-b334d1ed3771"].Items.PostAsync(requestBody);
Output
SP list:
Hope you find this helpful!!
Comment