API for interacting with SharePoint from .NET, Silverlight, and JavaScript.

learn more… | top users | synonyms

1
vote
2answers
30 views

How to get the return value from SP.SOD.executeFunc?

I have the same scenario as what this below question has: How to get the return value of an on demand executed function? I have SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getPageTitle); ...
3
votes
2answers
63 views

Can we create List in another site collection using CSOM?

I have a very simple scenario. I am using SharePoint Online I have 2 site collections SC1 and SC2. Now i am executing a JavaScript function in SC1 and am trying to create a list in SC2 in a sub-site ...
3
votes
1answer
29 views

Add Site Name to column in NewEdit Form using Client object model

I've been able to Get the site name (adding this to editform via CEWP) but I don't know how to modify the script to be able to update the field ProjectName with the Site Name. Any ideas? Thanks so ...
1
vote
1answer
62 views

Detailed version history for a specific version label

How to perform 'View' operation for fetching all metadata values of the specific version using SharePoint client object model, for instance here version 7.1 I am working for Provider hosted app [...
0
votes
1answer
43 views

How to get lookup field in Search REST API?

How to retrieve the lookupId or lookupvalue in Search REST API results with other fields. http://server/_api/search/query?querytext='sharepoint'&selectproperties='Title,Age'
0
votes
2answers
32 views

Is there any way to overcome URL length limitation in REST API “GET” Requests?

Is there any way to overcome the 2083 characters limit using REST API GET request itself.
3
votes
2answers
33 views

Update vti_ property

I use CSOM and I'm trying to find a way how to change vti_contenttypeorder property for a list item. Does anyone know some workaround how I can to do this?
2
votes
2answers
47 views

Get all property of Group using CSOM

Unable to get all property of SharePoint group using CSOM. GroupCollection collGroup = clientx.Web.SiteGroups; clientx.Load(collGroup, grups => grups.Include(grup => grup.Title, grup => grup....
0
votes
0answers
28 views

JSOM returns empty object on some pages

I've got some JSOM code that I use in two forms: a display form and an edit form. On the display form, DisplayTicket.aspx, it works exactly as expected. On the edit form, it runs and the JSOM call ...
1
vote
2answers
33 views

“The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column.”

I am trying to create calculated column using csom. var fieldXml="<Field Name='calctest' DisplayName='calctest' StaticName='calctest' Type='Calculated' Required='FALSE' ColName='sql_variant1' ...
0
votes
1answer
33 views

Add Webpart to a Page using only Javascript?

Is it possible to add a webpart to a page using Javascript. I want to add a webpart to a specific page whenever a button is clicked.
1
vote
2answers
69 views

Set Welcome Page using Javascript only?

Is it possible to set the Welcome Page of a SubSite using only Javascript? I'm looking to create an Onclick Event that does this. Anything would help.
0
votes
0answers
31 views

Client context is not working with ajax

I have an application where a sub site in SharePoint will create automatically by entering name, description and custom template id. I already have a working application, but the same application is ...
0
votes
1answer
33 views

Checking whether a sub site exist in site collection using client object model

I want to check a sub site exist in site collection. I site exist a new one will be created.This is what I have tried: int siteLanguage = 1033; //Create a new ...
0
votes
2answers
39 views

How to attach documents to list items SharePoint 2013 - Microsoft.SharePoint.Client (Error System.IO.FileNotFoundException)

I have a custom list and i'm using the below.But getting error: Could not find file 'c:\windows\system32\inetsrv/Filename -System.IO.FileNotFoundException if (FileUpload1.HasFile) { ...
0
votes
1answer
20 views

SharePoint 2010: Add GroupBy to existing list view using JSOM?

Is it possible to modify an existing view, more specific adding GroupBy, using JavaScript / JSOM? I am creating the library using JavaScript and I'd like to add a GroupBy in the "all items" default ...
0
votes
3answers
47 views

What is the list template type of an asset Library in SP2010?

I would like to know the list Template ID for an asset Library. Here is a link that list the template type enumeration available for all kind of lists and libraries... but nothing about the asset ...
1
vote
1answer
55 views

SharePoint JSOM and Promises - copying items from one list to another

I need to use JSOM to copy a set of items (found from a CAML query) from one SharePoint list to another. I'm pretty experienced doing this type of thing on the server side, but relatively new with it ...
0
votes
0answers
57 views

Copy list item value to another in SharePoint using REST API

I am trying to auto increment a value for a specific column in SharePoint list. How to copy list item ID value to another column of of a SharePoint list (e.g ProjectID). I tried this code '...
-1
votes
2answers
59 views

executeQueryAsync function calling not working using for loop

I am having values in result[15452,33616] when using for loop ,the async function taking only last array value (e.g-33616) and fetching the data for that pushing to another array and final push into ...
1
vote
3answers
59 views

CSOM error with SP.SOD.executeFunc used twice

I'm trying to do several CSOM requests. But I can't do it. Here is my first, that works alone : var collListItemToBeUpdatedRevente = ""; var enumeratorRevente; var ...
1
vote
1answer
37 views

Empty CAML Query recursively search through document sets

I want to search for every single item within a document library. This is working just fine, but isn't working if the files within a document set in that library. I'm using an empty CAML query ...
0
votes
1answer
40 views

Setting value of lookup Field

Every article about how to do this is slightly different and can't seem to figure this out. I have two lookup fields which are both present on my Listitem. I have reference to the list item here. ...
1
vote
2answers
61 views

Select 5 items with caml beginning at the fifth row

I can get the 5 first items of a list with caml : var collListItemToBeUpdated = ""; var listItemToBeUpdated = ""; var enumerator; function getItemsToBeUpdated2() //this function ...
0
votes
1answer
44 views

camlQuery rowlimit not working on a list

I'm trying to update some elements in a list with client object and caml query. It's working, my values are updated, but for all the items (around 15) even I have a rowlimit of 5 : var ...
0
votes
1answer
49 views

Attach document in custom list item using Client Object Model?

How to attach file in specific Custom list item in SharePoint online using Client Object model? Any help is appreciated! Thanks!
0
votes
0answers
33 views

Update XsltListViewWebPart using client object model (JS)

I'm deploying SharePoint App model (SharePoint Hosted), how to update a list view webparts on page and using Client Object Model (JS) or another way without server side?
0
votes
1answer
32 views

How to edit SharePoint page content/URL using client Object Model

I have SharePoint Site on SharePoint online with Pages library having 5 pages with content. Need to modify the URL in the pages programmatically using Client Object Model suppose I have Newname.aspx ...
1
vote
1answer
38 views

How to edit SharePoint page using client Object Model

I have SharePoint Site on SharePoint online with Pages library having 5 pages with content. Need to modify the URL on the pages programmatically using Client Object Model
0
votes
3answers
44 views

How to restrict date(Created) field to display only date and time?

How to restrict the date field(Created) to show only date and time instead of Fri Apr 15 2016 16:06:04 GMT+0530 (India Standard Time)? I do not want to show GMT and so on. The below is my code. ...
0
votes
0answers
15 views

Taxonomy Value Format with WSSID

I really wanted to know what is the use and effect of wssid. I m creating content organizer rule with taxonomy column. Currently, In TaxonomyHiddenList of my site is blank as i have not use any term ...
0
votes
1answer
113 views

Add navigation bar heading with CSOM

How can I replicate the "Add heading" functionality of the left quick launch bar with the client side object model? The task looks simple. Update the left bar of several sites by with a few links ...
0
votes
0answers
18 views

2010 Client Object model: Forms Authentication- 401 Unauthorized

I am using Client Object model for the forms authentication web application and I am getting 401 unauthorized error. Tried with CredentialCache.DefaultCredentials but still no use. Please help ...
0
votes
0answers
25 views

Get Document Views from Client Side

We have a SharePoint 2013 intranet site that contains a Document List. There are .xlsx documents and .rdl documents. I want to know which users viewed which documents. I want to get this information ...
1
vote
0answers
34 views

Windows Phone 8: SharePoint Online Authentication via ADFS

I'm trying to develop a Windows Phone app using Windows Phone 8.1 SDK and Microsoft SharePoint SDK for Windows Phone 8. I was able to successfully authenticate against a normal SharePoint Online site ...
1
vote
1answer
80 views

client-side REST API call across domain (site collection) [duplicate]

I am trying to use my javascript to make a call to a list that lives in a separate site collection. It is not working and blocks me due to CORS. Is there any way around this? My question is different....
1
vote
0answers
21 views

2013 CSOM development-accessing List directly as user doesn't have permission to access teamsite

I want to perform CRUD to a list from a console app or Asp .NET website. I am granted access to the list, but not the team site: accessing this https://mycompany.sharepoint.com/teams/teamname/a/b/...
0
votes
1answer
37 views

Sequential ExecuteQueryAsync?

How do you properly code / process 2 ExecuteQueryAsync, with the 2nd one reliant on the items of the 1st one. Basically, I have 2 Lists. 1st List is Main List, and 2nd one is like an extension. 2nd ...
0
votes
0answers
88 views

Cannot update custom metadata column for document Sharepoint 2010 using client object model

I'm using Sharepoint 2010 Client Object model from my C# ASP.Net application to upload documents. I have a custom column defined in Library settings for the document library. In my C# application, I'm ...
6
votes
3answers
505 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 ?
0
votes
1answer
37 views

Share multiple files of Document Library programatically

I want to share multiple files from Document Library programatically or any other way using Client Object model or REST API. Thanks.
-1
votes
2answers
36 views

how do i create a custom UI for a list column

What is the best way to create a custom feature to customize the UI of a list by filling in the column and/or field green when the value for row item = yes/no?
1
vote
0answers
17 views

Root list lookup is not assigned properly in sub site list using client object model

I have one list Users on root site. and another list I'm creating using client object model in sub site. Users list is already created. I'm try to add Users list reference in sub site list but is ...
0
votes
1answer
28 views

Count of documents based on site column content across multiple site collections?

I have a requirement for a dashboard and wondering how to implement in best possible way. I guess CSOM + REST is the only option Requirement: Have multiple site collections with one Document ...
1
vote
2answers
96 views

Copy Taxonomy Field from one item to another

I use CSOM and I want to copy a taxonomy field from one list item to another. Can someone give me an example of this?
0
votes
1answer
79 views

Include all non-system fields for listItems from client-side

Usually for retrieve information from list without system fields we've use code like this: clientContext.Load(logWorkItems, items => items.Include( item => item["Hours_x0020_spent"], ...
0
votes
2answers
68 views

How we can get the city of current user in sharePoint online

Hi currently i am working on sharePoint online, Where i need to fetch the Current location (city) of the user and on the basis of that i want to get the temperature of that city. using JScript . ...
3
votes
2answers
79 views

How does my app log into hosted Sharepoint (Sharepoint Online/Office365)?

I'm new to Sharepoint generally, and need to write an app which will do some basic file management. First, though, it needs to log in. The documentation I've found suggests that: var clientContext = ...
6
votes
1answer
122 views

(ClientSide) set/update JSlink to CSR files for (all) WebParts, Views, Fields

Working on iCSR.github.io to make CSR development a bit easier. I now want to make it as easy as possible to set the JSlink connections on WebParts, Views or Fields. I have code snippets to do it ...
1
vote
1answer
53 views

HTML Webpart JavaScript works in EditForm.aspx but won't in AllItems.aspx

I have a HTML Webpart with the following code (piece): <script type="text/javascript" src="../../SiteAssets/jquery-1.12.0.min.js"></script> <script type="text/javascript" src="../../...