The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
7 views

Create link that will create a content type based on document set - SP2010

I've extended the basic document set content type to include a couple of extra columns. Let's call it "CaseFile". I want to be able to create a link that allows the user to kick off the creation of ...
1
vote
1answer
20 views

JSOM get_url of image null or undefined

I'm trying to get the url from an Image/Hyperlink field in a SP2013 List. My query works until I add in the request for Image data. Unable to get property 'get_url' of undefined or null reference ...
0
votes
1answer
34 views

How to get SP 2013 site taxonomy data in SP 2010 site [JSOM/REST]

I am working on a javascript function for SP 2010 site where i need to fetch some data (Taxonomy) from a 2013 SharePoint site. Is there any way that i can get the SP 2013 site taxonomy data in SP 2010 ...
0
votes
0answers
23 views

Get all discussion board discussions and replies with JSOM

How can I display all discussions in a discussion board with the replies displayed beneath each discussion with JSOM? Getting the discussions or the replies for a specific discussion is easy but I ...
0
votes
0answers
10 views

Clicking on app title assign SPAppWebUrl to the SPHostUrl

I have created a SharePoint app which I have deployed to an on-premises environment. At the beginning the query string keys have correct values, but when I click on the title of the App its assigns ...
0
votes
0answers
17 views

Access SharePoint Online List Data in Office App

I am trying to create an Excel task pane, which shows the data from SharePoint List. Here is the MSDN article for Creating task pane or content add-in with Visual Studio, which consists of HTML & ...
1
vote
1answer
51 views

SharePoint 2013 JSOM Paging - The Prev Page Button gives error - Request Failed.Exception from HRESULT: 0x80131904 undefined

I am using SP 2013 JSOM for paging and sorting the list data in <table>. I have referred the code from this link ...
0
votes
2answers
39 views

How do I like an item on a discussion board via REST or JSOM

I have a discussion board with posts on it. Discussion Board 1 post1 post2 post3 I want to "like" the item in post2 in "Discussion Board 1". How would I do this via REST or JSOM. I have looked ...
0
votes
1answer
47 views

What SharePoint code determines the order of the fields in the Edit form?

Where can I find the code in SharePoint that determines the order of and what fields are in the Edit form? I have looked at the EditForm.aspx page and it doesn't look like this is determined there. If ...
0
votes
0answers
32 views

How do I add a button to a JSOM generated list?

I would like to add a button to a list that I am generating using JSOM on a SharePoint page. I want this button to trigger a link in a pop-up window that changes based on the ID of each item in the ...
0
votes
0answers
12 views

How to get SP.ClientContext to work on basic aspx.page?

I am trying to get JSOM to work on a basic aspx page created in Sharepoint Designer. But I have been unable to get SP.ClientContext to work, it is undefined and I get the error: ...
2
votes
4answers
129 views

Caml Query to return items created by logged in user

Using Javascript CSOM and want to return items created by logged in user, but the code below returns all items. Could someone advise? var camlQuery = new SP.CamlQuery(); var specifier = ...
3
votes
1answer
45 views

get_fieldValuesAsText usage example

I need to get items using JSOM and show them on a page in a display form. So currency field will be shown like $ 123,456.78 the date will be formatted accordingly to settings and Yes\No value will be ...
0
votes
2answers
17 views

How to pass {StandardToken} in sharepoint app using JSOM

I have a sharepoint hosted app, I need to redirect the user from starting page to another page on button click. I want to know how can I pass all the tokens in {StandardToken}. Do I have to manually ...
0
votes
1answer
32 views

SP 2010 CSOM Javascript: Intermittent Failure

I have inherited some JS code that is playing up. It looks something like this: ExecuteOrDelayUntilScriptLoaded(MyFunc, "sp.js") function MyFunc() { var ctx = new ...
1
vote
1answer
39 views

Reading all properties of web using Javascript object model

We can read the web properties using javascript object model as var webProperties = web.get_allProperties() and then to fetch a property value we can index it using ...
0
votes
2answers
57 views

GetUserEffectivePermissions returning 0 (“EmptyMask”)

I'm trying to retrieve the current user's permissions for a list but I keep getting an emptyMask result, even when my current user account is a Site Collection Admin. function ...
0
votes
1answer
37 views

Change Group permission using JSOM in SP 2013

I'm trying to change the permissions of an SP Group in an SPWeb using JSOM. I can add a new role using a new RoleDefinitionBindingCollection oblect to the group. But a similar approach to remove a ...
0
votes
0answers
52 views

Injecting javascript into sharepoint online master pages via jsom

I am attempting to inject javascript into the master page for my sharepoint online portal via sharepoint hosted app, but I'm running into a problem where when using the PnP sample as a guide I'm only ...
0
votes
1answer
36 views

Uncaught TypeError: web.get_url is not a function

When trying to execute the following code i got the mentioned error. Here is the snippet: var clientContext = new SP.ClientContext.get_current(); var web = clientContext.get_web(); ...
0
votes
1answer
80 views

Can SharePoint objects like 'SP.ClientContext' be used while developing Office 365 Mail Addin in Napa?

I am developing a Office 365 Mail Addin in Napa. I am trying to use the object of SP.ClientContext but it shows me error that SP is not defined. Office.initialize = function (reason) { ...
0
votes
0answers
20 views

Editable SharePoint 2013 Grid control in app

I would like to display editable data in a SharePoint-like grid control in my Project Server App (javascript object model). The look and feel I want to achieve is something like this: (image from ...
0
votes
1answer
21 views

Enumerating contents of 'context.load' JS object works but using 'getById' does not work

In my Office 365 App I have a simple functionality where it loads a library and then reads a couple of fields for all items in the library. Below is my sample code: (function () { ...
0
votes
0answers
27 views

How do i get people picker value in list joins in sharepoint 2013 JSOM

I have two lists List 1 and List 2, I have to get people picker value from List 1. But because of some limitations we cannot get 'lookup' type columns in joins for that refer the below link ...
1
vote
2answers
70 views

SP2013 javascript client object model - get server time

My client machine and server machine has time offset of 2:30 hours. So when I try to retrieve Date/Time field using JSOM, it gives time according to offset. oListItem.get_item("Modified"); So how ...
1
vote
0answers
40 views

How do i query date range comparisions in sharepoint 2013 list using JSOM

I need to compare date ranges the result should be between start date and end date. I am using Sharepoint:DateTimeControl picker and get the date using jquery, then converted date like startDate ...
0
votes
0answers
39 views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
0
votes
0answers
80 views

How to query lookup column in list join using caml query JSOM sharepoint 2013

<ProjectedFields> <Field Name="Column" Type="Lookup" List="Employee_Table" ShowField="Column" /> </ProjectedFields <FieldRef Name="Column"/> <Query> ...
0
votes
0answers
23 views

Get current color palette for the site

I'm wondering if it's possible to find somewhere what .spcolor file is used for the site theme. As there is a method for applying theme to the site: ...
1
vote
1answer
78 views

CAML query in JSOM for SharePoint 2013 results in “value does not fall in the expected range”

While querying yes/no column using caml query JSOM sharepoint 2013 getting "value doesnot fall in the excpeted range". <ProjectedFields> <Field Name="DateColumn" Type="Lookup" ...
0
votes
1answer
59 views

How to check if a Site collection exists using App model (JSOM,CSOM)

Is there a way to check if a site collection exists before creating the site collection? I am doing it using the App/Add-in model. Thanks.
1
vote
0answers
26 views

Client-Side Save Event in Edit Mode

Is there any client-side event I can listen to when a user saves a page? I know how to detect the edit mode and I could add event listeners to save/check-in buttons, but it would be better to listen ...
0
votes
1answer
63 views

Get clicked item ID from list

I have a list with items. Each item contains a link to another page. If a user clicks on one of those items, the specific item should get updated with a date when he clicked it. Now I get a target ...
0
votes
2answers
80 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 ...
1
vote
1answer
51 views

Get Field order from a list view : Javascript object model

I am getting the fields of a list view using the javascript object model view.get_viewFields() However, this does not return the fields in order which they are configured in the view. It just ...
0
votes
1answer
36 views

SharePointOnline\Office365 reading list data is taking long time to load

I wrote a custom JSOM script that uses SPServices to read list items from a list with 2430 items and 11 fields\columns. The scripts reads all list items and loads them in to JavaScript object. It is ...
0
votes
0answers
25 views

One time authenticating a user for both JSOM and CSOM calls

I have a SharePoint hosted app that requests the user's login credentials and sends them to a WCF service that at some point creates a context in CSOM using these credentials to issue some requests ...
0
votes
2answers
34 views

Enable major versioning javascript

How could I enable major versioning on list? My code is not working and I don't get any errors. _spBodyOnLoadFunctionNames.push(onPageLoad()); function onPageLoad() { ...
0
votes
0answers
121 views

Check permissions for user - AD group and javascript

We are building a single page application that resides in SharePoint and now we would like to show some components based on the current users permission on a list item. The problem is that ...
2
votes
1answer
41 views

Missing properties of _spPageContextInfo after page load

I have a script that provision site collections under a specific managed path. In these site collections, I have sub webs with page libraries in which I have several different pages with custom ...
1
vote
0answers
36 views

How to validate current user permissions for a given Term Store Group using CSOM

I can't seem to find a way to check for the current user permissions for a term store group or term set in Sharepoint Online. I know the REST interface does not support any kind of interaction with ...
0
votes
0answers
60 views

Find web part type using JavaScript Object Model in SPOnline

I need to go through all web parts of a page (e.g. default Display page of a list) and set the JSLink property on a particular web part. I can enumerate the web parts on a page and set the property on ...
0
votes
2answers
72 views

Need to pause While loop

I am using SharePoint 2013 in the cloud. Due to restrictions in the site, I am using JSOM and jQuery to customize a site. I have modified a Document Library edit form to create Tasks for each person ...
0
votes
1answer
96 views

How to get item id of copied file from SharePoint javascript api

I want to copy multiple files from one Document Library to another with metadata and column values associated from the copied file to the destination file. I am using SharePoint 2013 JavaScript Client ...
-1
votes
1answer
40 views

count rows in longest sharepoint list javascript

I want to get count rows in a List some have longest name while I am looping through all Lists. I want it in JavaScript
1
vote
2answers
48 views

Cant fetch SharePoint list column items with JavaScript

I cant run my code. I get this error message: 0x800a139e - Runtime Errors in JavaScript : The property or field has not been initialized . There has been no request or has not been performed. It ...
1
vote
1answer
66 views

Approve Permission to list item in SharePoint 2013

I have to set approve permission using JavaScript client object model. I have used below code to set other permission. But for Approve it is not working. function ...
2
votes
1answer
40 views

JSOM - Promise method on SharePoint 2010 site

I followed Vladim's suggestion in post and it works great on SP 2013 site but not on a SP 2010 mode site in the same farm. I have used the exact same code that works on the 2013 site but I get the ...
0
votes
1answer
80 views

Set default contenttype on list, from JSOM

I got some JavaScript that is creating some Lists and Content Types. I am able to set the Content Types on the Lists, however I am not sure how I am suppose to set it as the Default Content Type. So I ...
0
votes
1answer
58 views

How do I get all current users from a site

I need to get all currently active (not removed users) from a site. I have the following JS that gets all the users but some of them are old users that have been removed from the site (still exists in ...