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

learn more… | top users | synonyms

0
votes
1answer
19 views

Get default value for Managed metadata column

How can I get the default value of a Managed metadata column. I'm trying to do: var ctx = new SP.ClientContext(url); web = ctx.get_web(); lists = web.get_lists(); ...
1
vote
0answers
10 views

Which http headers are stripped out by the Sharepoint Web Proxy in SP Online?

I've used the Azure API management gateway to intercept traffic from the SP web proxy and I've learned the following about its behavior with HTTP headers: Custom headers are passed through ...
0
votes
1answer
17 views

How to use asp.net controls in .JS file for SharePoint Development

I am working on JS file from SharePoint designer and using HTML controls inside my JS. I am willing to replace HTML Controls with asp.net controls for the user interaction. Can any one help me in ...
1
vote
1answer
14 views

Unable to remove title field from list definition

I am working with a list integrated into my SharePoint Add-in. Normally, to remove the title column, I would go into the list settings menu and work with the column that way. The issue is that from ...
1
vote
0answers
17 views

Folder Name inside document library in sharepoint hosted app

I am making app that display document library in nested list means if there is folder and it contain files then it displayed in nested files list. Here is my code to get folders name inside document ...
0
votes
0answers
18 views

check group permission with javascript

I am developing a sharepoint add-in for Office 365 and I need to check groups permissions for my site. Has anyone some ideas?
2
votes
2answers
26 views

Value does not fall within specified range error when adding folder - JSOM

I am attempting to use JSOM to add a folder to a pre-created folder within a specified library. In the code below, I have checked that all of the variables are functioning as expected - meaning the ...
0
votes
1answer
44 views

web.getList() retrives all lists. Instead of this I want only user created list

I am making Sharepoint hosted app and I am trying to get all lists appContextSite = new SP.AppContextSite(context, hostweburl); this.web = appContextSite.get_web(); //Code to get the cross domain ...
1
vote
1answer
34 views

ctx object in document sets

I need to get to the ctx object when a user navigates to a document set. My code runs well on all other pages so far, but on document sets it seems random if the ctx is loaded or not. I was told in ...
0
votes
2answers
53 views

move list element to another list with Jquery

I have two lists and I would like to move a list item to another list on a webpart button click. Is there a way to move items using jquery in sharepoint? Thanks.
0
votes
0answers
17 views

Start a workflow task and assign it with JSOM

I am trying to see if it would be possible to start an Approval or Collect Feedback workflow with JSOM. There is some documentation out there for kicking off a workflow with JSOM: ...
0
votes
1answer
22 views

Get the month name using html date control

I am using HTML controls to get interact with SharePoint 2013 list And performing CRUD operations using JSOM between forms and lists My form is having HTML date control.And on the submission of it, ...
2
votes
3answers
339 views

REST 403 Response on Chrome/Firefox/Edge but not IE

I have created a SharePoint Add-In that attempts to list out the subsites of the current site using the REST api. Here is the code snippet: //Subsites function searchSubSites(webUrl, success, ...
0
votes
0answers
11 views

How to set equivalent of “No New Instances” on Worflow in JSOM/CSOM code on Sharepoint Online?

We have created a SharePoint 2013 (SP Online/Office 365) hosted add-in which allows admins to set various column values on all items on a document library, or recursively from a provided folder. ...
1
vote
2answers
36 views

Remove Cancel button of New Item form from SP Modal Dialog

Using below code I am loading share point new list item form in the SP Modal Dialog. Now I want to hide Cancel button of that form. How can I do that ? <script type="text/javascript"> var ...
0
votes
1answer
12 views

Using 'ExecuteOrDelayUntilScriptLoaded' on Client Web Part page

Can anyone tell me how I can use: ExecuteOrDelayUntilScriptLoaded(myFunction, "sp.js"); in my Client Web Part pages (App Parts)? In my standard pages it loads fine but when I try use this ...
0
votes
0answers
23 views

Retrieve list item created by current user in content editor in SharePoint 2013 [duplicate]

I want to show SPModal Dialog which contains a new item creation form to the user on the page intranet home page if user is not create or submit any items in that list. I tried but I am getting error ...
1
vote
2answers
27 views

Add Run with elevated privileges in JSOM [duplicate]

I writing JSOM code to get interact with sharepoint 2013 lists and document libraries.Now I have requirement to allow anonymous users to insert the items for SharePoint Lists list. Can any one help ...
0
votes
1answer
16 views

Object Object error on JSOM Insertion Operation

I had written the code to insert the values in sharepoint list,And I was unable to to perform the operation.When I check step by step using "alert" then I see error as "[Object Object]" . Below ...
1
vote
2answers
57 views

JSOM to load pop with new item form if user is not created previously

I want to create one SP dialogue box at home page which load the new item form of list or survey if current login user is not created any item previously. Is there any way to do that ? I tried using ...
0
votes
1answer
9 views

REST API return encoded Multiline Textfield but show it correctly

I save a JSON string in my SharePoint list. This looks like: ...
2
votes
1answer
26 views

Sharepoint CAML IN operator not working with FileDirRef

I want to retrieve a list of file from two folders. When I combine two <Eq><FieldRef Name="FileDirRef" />... with <Or> it works fine. When I want to use the <In> operator it ...
1
vote
1answer
31 views

Is there a built in SharePoint object which lets you know if you are in a form?

I'm in the process of branding a SP-tenant using JS-injection and CSS. I've been able to use ctx and _spPageContextInfo in many cases, but in some cases they aren't initialized. What is the best way ...
1
vote
1answer
38 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. ...
0
votes
1answer
60 views

Export Html table into Excel

I have written the code in .JS file to fetch the data from sharepoint list and display in html table. Now to take my work for next level I need to export the html table to "Excel". The below code is ...
1
vote
2answers
51 views

Hide a specific list from 'View All Site Content' using JSOM/CSOM?

I see you can make a list hidden by using SharePoint Designer (http://www.sharepointdiary.com/2013/06/how-to-hide-list-or-library-in-sharepoint.html) which I am not interested in. It is okay if the ...
-1
votes
1answer
36 views

Get folders and files from SharePoint List

I am working on an Provider hosted app, scenario is to get all folders and files from SharePoint library and display on UI(more like a view). Need some tips to do it. I mean how to create a UI similar ...
1
vote
0answers
28 views

ExecuteQueryAsync() caues error - The operation has timed out

I have an application in JSOM which updates property of document set in SharePoint online. I am updating 6 taxonomy fields, 3 text fields, 1 user field. I am also assigning permissions to a user. I am ...
3
votes
1answer
34 views

How to add Previous/Next buttons to SharePoint blogs posts?

How to add Previous/Next buttons to SharePoint blogs posts so I can navigate to previous or next post ?
1
vote
1answer
41 views

how to call executeFunc when page refresh

I am working on Sharepoint JSOM with rest. I am using search template for search. In that page also i have default sharepoint pagination for manage results. So ,i have to call ...
0
votes
0answers
27 views

How to connect Office Add-In to SharePoint On Premise

I am trying to develop a Word Add-In and I need to retrieve a SharePoint list items. 1st Question: It is posible to write CSOM (c#) code instead Javascript? 2nd Question: How can connect to a ...
0
votes
0answers
14 views

How to solve a wrong webId SchemaXml property issue for aWeb/Field

Using the following Schema to provision a Field to currCtx.get_web().get_fields() via webFieldCollection.addFieldAsXml(schemaXML, false, SP.AddFieldOptions.AddToNoContentType) I've made a mistake in ...
5
votes
3answers
226 views

Get Parent web of a subsite using JSOM in SharePoint 2013

How can we get an immediate parent web of a subsite using JSOM ?
1
vote
1answer
63 views

How to move list item into folder in Sharepoint online

I created a folder and have some item in this list. So now how can I move list item into folder using JSOM. I know user can drag/drop, but I want when user create a list is always move to folder ...
1
vote
0answers
18 views

.saveWebPartChanges() always re-enables 'Display search box' to checked

When I set JSLinks on WeParts with code: jsl.ctx.load(properties); properties.set_item('JSLink', JSLink); webpartDef.saveWebPartChanges(); It also resets the previously unchecked Display ...
0
votes
0answers
11 views

How to read the .spcolor theme file from composed Looks List in SharePoint 2013 using JSOM?

I want to read the .spcolor file from the Theme URL column in the composed Look List using JSOM. Please advice.
0
votes
0answers
12 views

Shared hosted app and version history modal from hosted web?

I have a problem with this shit SharePoint cross origin and frame unfriendly system. With other words: Why can't I configure the security for a site? Or why there is no option "Allow apps to access ...
0
votes
0answers
36 views

Cross Domain Request from a SharePoint Hosted Add-in to a WCF RESTful service hosted by Provider hosted Azure WebApp

I am trying to perform a cross domain request from SharePoint hosted add-in to a wcf service in provider hosted add-in. I have a hybrid setup as below: SharePoint Office 365 site online, Azure ...
3
votes
0answers
69 views

How to stop a SharePoint workflow using JSOM

Let me preface by saying that I'm a relative newbie to this SharePoint stuff and am still fumbling my way around a bit learning from code examples where necessary. That being said, I have no issue ...
0
votes
0answers
32 views

Export Html table to Excel Using JSOM in JS file

I had written the code to fetech the data from sharepoint list and display the information using JSOM from js file.Everything is working fine and when I had written the function to export the html ...
1
vote
0answers
36 views

Managed Metadata Global Navigation

I’m using managed metadata to create global navigation on a SharePoint Master Page. I understand that a managed metadata term set can only be applied to a single site collection. To bypass this I’m ...
6
votes
1answer
177 views

What is the pros and conts between JSOM and REST

I have a dilemma choosing between JSOM and REST what is better? what are the pros and conts of both? is different in performance? I have search but I cant find something usefull.
1
vote
1answer
80 views

SharePoint Online JSOM Update Person/Group Lookup Field with Multiple Values

I am using the client side people picker, found here: I have a list called "Jobs" with a Person or Group column called "Users". To update this column I have to pass in the user IDs of the users. ...
0
votes
1answer
35 views

Request failed: unexpected response data from server null

I have to develop a page for SharePoint 2013 where I am retreving data from a list and showing it. I have a list called Test , below is my code to retreive data from list. function ...
1
vote
1answer
35 views

Export CAML query data into Excel

I am using JSOM to fetch the data from sharepoint list and binding into html table from JS file .And I would like to export the query(CAML Query) data into Excel,Can anyone help me how can I do ...
0
votes
0answers
16 views

Caml query on large list fails filtering on indexed column

I've got a large list that has the TicketId field indexed. Using JSOM, I do this: var cntx = SP.ClientContext.get_current(); var camlQuery = new SP.CamlQuery(); ...
1
vote
0answers
56 views

JSOM enumerator get_item(“TaxonomyField”) return differently in no-markup Sharepoint-hosted addin Page

We are running the same simple web.get_lists().getById("id") script in two distinct markup pages. It works fine in both pages, except when it comes to a Managed Metadata Taxonomy Field: ...
0
votes
1answer
39 views

Logical operators are not working in JS file

Everything is fine I am able to fetching the data from SharePoint 2013 List using CAML query in my js file. But when i try to get the data via dropdown conditions my code is executing in the else ...
1
vote
0answers
25 views

request query using jsom for project server (ps.js) another user

request query using jsom for project server (ps.js) another user i need request a query using another user, no my current user this is possible ? I'm using JSOM with ps.js for project server 2013 ...
2
votes
0answers
22 views

JSOM save indicator/semaphore (locked ListItem)

I am using standard JSOM code to update one ListItem on every keyup event Typing (too) fast causes a JSOM error (because the back-end has not yet finished saving the list-item, so it is locked I ...