I need to connect my web app to a sharepoint online. I read a lot of example based on on-premise SHP ed it use a Sharepoint.DLL. So MS suggest to use Graph.
My question is about best practice to implement this function:
Best approach would be, develop a REST API flow using MS Flow... the MS Flow action would be when a http request comes.... then in the MS Flow handle the files reading and files uploading functionality and once you save the the flow you will get an automatic Azure REST API URL - this api you have to call from your c# code and need to pass the parameter to REST api. Note: 1.You may need to develop two MS Flow api one is for reading the items and another for uploading the document.
If you want to access SharePoint Online data using C# in your web app, you could choose SharePoint Online CSOM library:
Microsoft.SharePointOnline.CSOM
Read List Item and other objects:
How To Read Various Objects Using SharePoint Online Client Side Object Model (CSOM)
Create folder:
Create Folder in SharePoint using CSOM
Upload document:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.