Working with JSOM (JavaScript Object Model) on SharePoint Apps
Posted by Bipul Raman on July 19, 2015.In this article i have written code samples which a developer can use to start working on JSOM ( JavaScript Object Model) in SharePoint Add-In (formerly) SharePoint Apps development.
The first part of the code in JSOM will be creating context. The approach of creating context depends if the data lying in the same site or other site.
- If we are doing CURD operations on data from the same site then we can use code samples at below link:
https://github.com/BipulRaman/SharePoint-JSOM-Samples/tree/master/JSOM
- If we are doing CURD operations on data from other site, for example - In a SharePoint hosted Add-In you are trying to access data from a list which is present in other SharePoint site.
https://github.com/BipulRaman/SharePoint-JSOM-Samples/tree/master/JSOM_SharePointAdd-In