none
When to use CSOM over JSOM RRS feed

  • Question

  • Hi,

    I was wondering when to use .net CSOM or when to use JSOM.

    Should we use .net CSOM with windows form only?

    Regards

    Zakir


    • Edited by Md Zakir Tuesday, April 19, 2016 12:02 PM
    Tuesday, April 19, 2016 12:01 PM

Answers

  • CSOM is Client-side object model. The Main advantage of the CSOM is that you do not need to be on the Server to use them in your program. No Compilation required as required on the server side, NO IISRESET required.

    We can use CSOM in SharePoint Provider-Hosted Add-ins.

    JSOM is JavaScript Object Model, we can use the JSOM in SharePoint hosted Add-ins.

    If you want to access some SharePoint resources(like lists, items) from a WinForm application or an ASP.NET application, we can use CSOM to achieve it.

    If you want to access some SharePoint resources from SharePoint page, we can use JSOM or use jQuery Ajax to call REST API.

    If you want to access SharePoint in a Java or PHP application, SharePoint 2013 provide the REST API to meet the requirement.

    For more details,please find the below link
    http://sharepoint.stackexchange.com/questions/93269/csom-vs-jsom-vs-ssom-vs-rest
    • Proposed as answer by Rajesh.Sitaraman Tuesday, April 19, 2016 12:33 PM
    • Marked as answer by Md Zakir Tuesday, April 19, 2016 5:24 PM
    Tuesday, April 19, 2016 12:22 PM