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

learn more… | top users | synonyms

0
votes
0answers
9 views

Query for App Web List Data from Host Web Event Receiver

I have a Remote Event Receiver attached to a Host Web List. On ItemUpdated, I want to query a list in the AppWeb. I'm trying to create my client context but AppEventProperties is null. Any ideas why? ...
0
votes
0answers
10 views

SharePoint Online provided hosted ribbon app running twice

I have a SharePoint Online provided hosted ribbon app (in Azure), the app perform query the document properties and check out the document, the problem is when the document process for 50 documents or ...
-1
votes
0answers
24 views

How to export documents via add-in without downloading the files onto the client?

i want to export files from Sharepoint to another system. I could do it via a farm solution and the server object model, but it would be nicer if we could publish our extension as an app/add-in to the ...
1
vote
1answer
33 views

Sharepoint client object model {File not found}

var onlineCredentials = new SharePointOnlineCredentials(ServiceUserName,securePassword); var context = new ClientContext(clientUrl); context.Credentials = onlineCredentials; ar cc = GetAllFiles(...
0
votes
2answers
12 views

Creating a sub-folder in a SharePoint with Client.dll in C#

I am trying to create a list of all the folders that exist within the root folder. From there I want to implement the creation of a folder if the folder does not already exist. Is there a way to ...
1
vote
1answer
39 views

Group permission - Sharepoint Online Powershell

I would like to have a report of which sites a specific group or user has on all the SharePoint sites. I have this group called SPGroup and I want to see on which sites this group has permissions on, ...
0
votes
0answers
9 views

SCOM + group: how to distinguish its members (between user or Active Directory group)

A SP group contains users and Active Directory groups. I need to get the emails of all users (including users in Active directory group) for the particular SP group. How can I do that? string ...
1
vote
2answers
39 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
72 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
30 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
65 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
54 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
46 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
35 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
56 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
34 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
42 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
44 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
80 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
34 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
48 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
42 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
25 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
57 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
78 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
81 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
66 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
66 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
47 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
41 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
68 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
66 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
62 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
42 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
37 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
50 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
50 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
16 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
167 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
19 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
27 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
38 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
96 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
25 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
38 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
121 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
689 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
39 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
37 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 ...