The JavaScript Object Model (JSOM) is a SharePoint Client Object Model that enables you to work with objects on the client side without having to deploy code on the server.
Questions tagged [sharepoint-jsom]
135 questions
0
votes
1 answer
SharePoint REST API with CAML Query for more than 5000 items
I need to filter a list which has more than 5000 items using SharePoint REST API
One of the columns to filter is a managed metadata column which prevents me from using SharePoint REST API GET Urls
I have to use REST API POST requests with CAML Query…

Abdul Hameed
- 1,025
- 12
- 27
0
votes
1 answer
I’m facing a performance issue in SharePoint online app parts
The custom app parts in SharePoint add-ins (SharePoint hosted) gives bad performance when adding them into a custom page in the hosted site.
Is there a solution for this problem?

Norhan ElKholy
- 29
- 7
0
votes
0 answers
Access Sharepoint (sp.js) from an Outlook 365 addin
Goal
Access Sharepoint via JSOM from within an Office 365 Outlook Add-in.
Problem
I tried multiple things, most of them lead to a "403 - forbidden".
Code
// The Office initialize function must be run each time a new page is loaded.
…

Jordumus
- 2,763
- 2
- 21
- 38
0
votes
3 answers
SP.ClientContext is undefined in SharePoint online
I am trying to get details of logged In user through JSOM in SharePoint online.
Below is the code which I am trying:
SP.SOD.registerSod('sp.js', "/_layouts/15/sp.js");
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getCurrentUser);
function…

salah9
- 502
- 1
- 10
- 21
0
votes
1 answer
How to list All the labels present in term from the term store share point online
I am using following code get all the terms using GUID.
var context = SP.ClientContext.get_current();
var session = SP.Taxonomy.TaxonomySession.getTaxonomySession(context);
var termStore = session.getDefaultSiteCollectionTermStore();
var…

Keerthi Kumar
- 168
- 2
- 13
0
votes
1 answer
Updating Taxonomy field throws exception when "castTo TaxonomyField"
I have a list that contains a Taxonomy Field. I want a function that updates an item from that list (I have the id) and changes that field to one of its values (always the same one).
I've searched and using functions I used in the past this is the…

shocks
- 53
- 8
0
votes
1 answer
How do I get the list of all the document libraries present in the SharePoint site using JSOM?
One of the Projects I am working on, I have to get the list of all the document libraries in a site. Not sure how to achieve this since I am working with Office 365/SharePoint online.
I have a collaboration list which contains info for all the sites…

mdevm
- 97
- 2
- 14
0
votes
1 answer
Does SharePoint Search API throws any threshold limit in any case?
I have gone through following question
SharePoint REST API call with more than 500 rows
We want to use Search API with REST API or JSOM. We have large lists in SharePoint. The data can be 100000 or more items in a single list. There are multiple…

Shailesh Jaiswal
- 3,606
- 13
- 73
- 124
0
votes
1 answer
How to automate site creation on save in a SP list form using JSOM?
For one of the Clients Requirements, I have to automate Sharepoint site creation on a button click. Basically there will be a SharePoint list form in which a user will enter data as title, url, and select a template. Once clicked on save it should…

mdevm
- 97
- 2
- 14
0
votes
1 answer
sharepoint online rest query throttle
I am observing a quite strange issue, with the sharepoint rest API (SharePoint Online as well as onPrem).
We have a slightly bigger library (~100.000 documents) with some multi-level folder structure. I have two additional fields on the folder,…

dreamworks
- 1
- 3
0
votes
1 answer
Sharepoint 2013 - User profiles JSOM
I have this part of code which should get me for example the "title" of the current user in Sharepoint, but everytime it gives me error: Common Language Runtime detected an invalid program.