Questions tagged [jsom]

Use the JSOM to retrieve, update, and manage data in SharePoint.

Filter by
Sorted by
Tagged with
1
vote
1answer
625 views

JSOM SP.ClientContext returning Error

When I attempt to do var ctx = new SP.ClientContext("https://siteurl"); var item = ctx .get_web() .get_lists() .getByTitle("Folder") ...
1
vote
1answer
785 views

Files move from one library to another library using jsom

Below code is working fine, but inside for-loop if I put alert,then moving multiple file but if I remove, only one file moving. I do not want any alert/pop up. Please suggest. ...
1
vote
1answer
380 views

Creating a List Column with JSOM

I am trying to create a column in a list in SharePoint 2013 but I receive the following error. Anybody know what it means. Request failed. 'FirstName' is an unexpected token. The expected token is '"...
1
vote
1answer
1k views

How to get more than one SharePoint list using REST API?

I have created multiple lists in SharePoint 2013. I need to get the multiple list items using REST API call. I have tried the method to get the multiple list items using API within the for loop but ...
0
votes
2answers
436 views

How to change the url for the site logo that appears on the search results page?

I have a search center site and on the results.aspx page, I am displaying results based on a search query. I actually have a master page applied and using the approach mentioned here: http://...
0
votes
3answers
773 views

Error : it exceeds the list view threshold enforced by the administrator

How to access SharePoint online list data which has 60000 items in it using JSOM . Indexing is not done on any of the list columns .Whenever trying to access SharePoint list data , it is giving "Error ...
0
votes
2answers
1k views

JSOM Script Returning serverRelativeUrlOrFullUrl Error from SP.ClientContext.get_current()

I'm attempting to build a script for a Sharepoint 2013 project management hub that eases the process of spinning up and archiving project subsites as they are needed. I'm having trouble getting my ...
0
votes
2answers
134 views

Cannot execute JSOM code correctly

I am iterating List A and fetching each items title. Then I match the title against a column in List B. If a match is found I add relevant columns in list B and output. I have put 2 items in list A as ...
0
votes
1answer
159 views

SharePoint custom Sharing button

I need a share functionality in sharepoint page using my custom share button. The custom share button is present in each row of list item. List is rendered using RESTAPIs with the help of script ...
0
votes
1answer
2k views

Download link for SP.Search.js

I going to create Keyword search using JSOM. So i want some reference files to accomplish this. Please share the download link for the below files SP.Search.js SP.RequestExecutor.js SP.runtime.debug....
0
votes
1answer
95 views

How to convert JSOM response to simple object

I'm using some javascript code to retrieve the workflow definitions on my site: var context = SP.ClientContext.get_current(); var web = _context.get_web(); var serviceManager = SP.WorkflowServices....