Best is to stick to Microsoft Graph APIs to make your application(s) future proof. If some features that you need aren't available with Graph APIs yet, then follow SharePoint APIs and then CSOM in that order.
Sharepoint Online Microsoft recommened approach -CSOM or REST
Mahadev Karekar
1
Reputation point
Hi,
I have some queries in selecting Approach for SharePoint Online development. please can you give some information on below .
We are developing project for SharePoint online. We have shortlisted two approaches
- CSOM
- REST API
Need info on below points.
1) Will there be continuous support for CSOM and REST API from Microsoft?
2) Is REST API going out of support ?
3) Which is the Microsoft recommended approach to be used during development?
4) I find there is also SharePoint REST API v2.
Thanks
Mahadev
2 answers
Sort by: Most helpful
-
-
Amos Wu-MSFT 4,051 Reputation points
2020-08-13T02:32:46.423+00:00 - Microsoft will continue to support CSOM and REST API.
- You need to choose different API for different development scenarios.For Front-end development(like SharePoint FrameWork...) you could use REST API or Graph API,for Back-end development(SharePoint Addin),you could use CSOM and REST API.
And the SharePoint Framework is the next evolution in SharePoint development. - Graph API document for your reference:https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0