Sharepoint Online Microsoft recommened approach -CSOM or REST

Mahadev Karekar 1 Reputation point
2020-08-12T08:36:32.537+00:00

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

  1. CSOM
  2. 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

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,819 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anupam Shrivastava 176 Reputation points
    2020-08-12T11:30:56.527+00:00

    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.

    0 comments No comments

  2. Amos Wu-MSFT 4,051 Reputation points
    2020-08-13T02:32:46.423+00:00
    1. Microsoft will continue to support CSOM and REST API.
    2. 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.
    3. Graph API document for your reference:https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
    0 comments No comments