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

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

How to retrieve users from “list permissions users” of any LIST in SharePoint 2010 Client Object Model?

These code is giving me all users of the site, but need to get Users that are in List Permissions of any LIST (not Library) i.e of Project Task or Custom List. Thank you Web web = _ctx.Web; List ...
0
votes
0answers
8 views

Cannot invoke HTTP DAV request. There is a pending query during OpenBinaryDirect

I've to move some items from one document library to an other one in a different site. I use object client model to do this My issue is having an exception while i'm trying to open the file and here ...
1
vote
1answer
32 views

vb.net com: get list by url

Is it possible to get a list by url? Something like this. Dim list As SP.List = ctx.Web.Lists.GetByURL("site") If that isn't possible, is it possible to get the guId by using the page id?
3
votes
2answers
30 views

XsltListViewWebPart and custom link column

I have a XsltListViewWebPart with a custom link column used for change a value on current listitem using JavaScript. <a href="javascript:ApproveRejectRDA('{@ID}', true);" title="approve"> ...
0
votes
1answer
32 views

Trying to get lookup (Title) value, but returns null only in Client Object Model

I have this query: <View> <ViewFields> <FieldRef Name='Title' /> <FieldRef Name='itlgCategoria'/> ...
0
votes
1answer
23 views

vb.net client object model: view content from sharepoint 2010 wikipage

On SharePoint 2010 i have many wikipages containing a table. Is it possible to view the content of that page in vb.net using the client object model? I tried to get the file code using a stream but ...
0
votes
1answer
34 views

Option to upload and download file to SharePoint Document library

I want to give option to user on .aspx page to upload and download file to SharePoint Document library. I created an ASPX form page. There is an option to upload / download the document for storage. ...
0
votes
1answer
16 views

Use content from Microsoft.SharePoint.Client.File

I have a Microsoft.SharePoint.Client.File called "Algemeen.aspx" that i got from SharePoint 2010. Now i need to get the content from that file in my vb.net application. Does anyone know how this is ...
0
votes
0answers
16 views

“Version conflict.” error while file update in CSOM Sharepoint 2010

I update my file using below code. But it shows "Version Conflict." error on ExecuteQuery. I searched for this issue by not able to find out the exact solution. Please help me out. Thanks ...
0
votes
0answers
18 views

dynamic filtering for content query webpart

In first i'm in sandbox solution. as in my title, i need to filter dynamically the content query webpart. I found a lot of farm solution like overriding content query webpart and onload methhod but i ...
0
votes
1answer
27 views

Issue while adding multiple items using for loop in Client Object model

I am trying to develop My Favourite functionality in Sharepoint using the below approach. Create My Favourite list Create a custom script that will read the selection of the list item (any other ...
0
votes
1answer
37 views

Uncaught TypeError: undefined is not a function

I access my web in javascript code in SharePoint 2013. I'm using Jquery and KnockOutJS for my other functions. So I have added following urls above my code. <script type="text/javascript" ...
0
votes
0answers
7 views

Is there any way to add attachments to newly created item in a list using managed client om?

i am trying to copy list items from one list to another list.it is working. then i tried to copy attachments ,sample code is as below. foreach (Folder f in ...
0
votes
2answers
54 views

Get all Users with Info(LoginName,Id,Email,Title) in SharePoint 2010 Client Object Model C#

I have gone through this link : http://msdn.microsoft.com/en-us/library/office/ee538244(v=office.14).aspx But through this I am only able to get user details which are in groups. I am not able to get ...
1
vote
0answers
32 views

Sharepoint JSOM: set_item() without update()

I'm using SharePoint Javascript Object Model (JSOM). Can someone explain to me what set_item() does and what update() does? Below is some code to illustrate. Boilerplate code to get the list items: ...
0
votes
1answer
26 views

How to add user to site collection administrator using clientcontext SharePoint 2010?

I searched for this but in vain. Used this below code for SharePoint 2013 and works fine, but now need to develop for SharePoint 2010. Web web = _ctx.Web; User user = web.EnsureUser(userName); ...
1
vote
1answer
33 views

Anonymous Acess in Client Model (Javascript in Office 365 in Master Page)

I have the following code function retrieveListItems() { var clientContext = new SP.ClientContext.get_current(); var oList = ...
1
vote
1answer
36 views

Get the current version and level of listitem

I'm using a client script to retrieve listitem from a context. Everything works and load my item with and it's ok. myCtxtWeb.Load(item); myCtxtWeb.ExecuteQuery(); Now I'd like to know the versions ...
2
votes
1answer
35 views

Sharepoint provider hosted app Microsoft.SharePoint.Client.File.OpenBinaryDirect does not work

I am trying to do. Microsoft.SharePoint.Client.File.OpenBinaryDirect(context,relativeUrl) Always get "forbidden" and unauthorized. However If i use same context and url to do ...
0
votes
0answers
30 views

dispex SharePoint.OpenDocuments.3 works for PDF but not Office docs?

I have the folllowing in my XSL for a (SharePoint 2010) content query webpart: < A onfocus="OnLink(this)" HREF="{$ItemUrl}" onmousedown="return ...
3
votes
1answer
106 views

How do you properly write to a managed metadata column from JSOM? (SharePoint 2013)

I am trying to write the value of a managed metadata column across several documents in a document library at once using JSOM, but for some reason the way I'm trying only writes the value to the first ...
0
votes
2answers
41 views

JS ClientContext return undefine when deleteObject

I'm trying to delete a list item from a SharePoint library via JavaScript with ClientContext. Unfortunately I don't have access to the ID of the item that's why I use the Title and I can not delete ...
1
vote
1answer
56 views

Access SharePoint online using client object model- Forbidden error

I tried to Create a new list item using client object model. I have created an asp.net application to do the task. It works if I pass the URL of SharePoint server which is installed in my machine. But ...
1
vote
0answers
13 views

how to change programatically a date in a form library item?

I'm trying to change a date field in a form included in a form library (from a .net desktop app with sharepoint client runtime) but when I change it and open the form it crashes and says that is an ...
2
votes
1answer
56 views

Add file with comment sharepoint client object model

I use following code to add file to SharePoint library using client object model. Web web = context.Web; FileCreationInformation newFile = new FileCreationInformation(); ...
1
vote
1answer
51 views

Display loading/processing while processing using CSOM

My current implementation includes following, User adds an item, once saved it is redirected to the display form of the same item. I have implemented this requirement using below steps. On ...
0
votes
1answer
67 views

Client Context executeQuery() works in console app but returns null object when executed from CRM Server

I have the function GetDocumentLibrary which must return a libray from sharepoint site. When I execute it from a Visual Studio Console Application it works and return the library with all ...
3
votes
2answers
112 views

What are the advantages of using SP Services?

What advantages would I gain by using the SP Services library in SharePoint releases 2010 and later? The 2013 (and even the 2010) JavaScript Object Model and REST API seem to cover a significant ...
1
vote
2answers
115 views

Does ExecuteQuery have a cache/timeout/etc?

I wasn't sure how to phrase the title, forgive me. I'm running into an issue with the CSOM (SharePoint 2010, but likely in 2013 as well), where my initial ExecuteQuery() statement takes upwards of 20 ...
0
votes
0answers
49 views

Get the template File from an Infopath Library via Webservice

I am trying to create a new Document in an Infopath library in a SharePoint 2010 Server. It worked quite well when trying to do the job via WebPart (server side). var mySpSite = ...
1
vote
1answer
68 views

Copy files/folders between site collection and retaining metadata

I'm using SharePoint 2013 I need to copy files/folders/sub folders from one site collection to different site collection(basically archiving them). I need to do this remotely by using CSOM/JSOM. ...
2
votes
1answer
48 views

executeQueryAsync fail on Chrome

I am using SP.ClientContext (JS library) to update some item's fields. It is working fine on IE but on Chrome I get this error (displayed as alert): Request Failed, status code 0 text '' The ...
0
votes
1answer
33 views

Missing DLL msoidclil in Azure Web Site

I have an application that accesses and updates SP document libraries. Using SP 2013 COM, it works fine locally. When the code is deployed to and executed in an Azure web site, a file not found ...
0
votes
2answers
82 views

CAML query returns all items instead of one

I am querying a list to return only items matching a certain title, but the query returns all items. It seems I built or execute the query the wrong way: /* SP is an alias for ...
0
votes
1answer
94 views

What is the purpose of Microsoft.SharePoint.Runtime.dll in CSOM?

I know we need to use Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime dll's reference in .NET managed CSOM application development. But can someone help me understand why we have ...
0
votes
0answers
26 views

Sync desktop folder with document library folder

I am working on a client side application. Is there any way to sync a document library folder with a desktop folder with the following requirements? all files in the folder should be synced with ...
1
vote
3answers
494 views

Sharepoint- Client Object Model - Javascript - How to check if a particular file with same name exists in a document library folder

I am using javascript sharepoint 2013. I want to know how to check if a file exists in a folder, before i upload. Here's my code // Folder Name - folder into which I need to upload var ...
0
votes
1answer
22 views

Newly added files to document library client object model

I am developing an application which is will be deployed in the client machine. Client will be downloading the applications from SharePoint to local machine to a fixed folder(folder wont get ...
2
votes
1answer
38 views

How can I get a listing of all sites in my site collection using Client Object Model?

As the Site Collection Administrator, I don't have access to the servers to write server side code to get a listing of all sites in my site collection. I can write sandbox solutions in SP2010 to get a ...
1
vote
2answers
36 views

Get the field “Created”

I have a list "Consult", and I want get the field "Created" this is my code: function consultWorkOrder() { try { var customlist ; var clientContext = new ...
2
votes
2answers
96 views

Field or Property 'Url' does not exist

Can someone help me understand why I am unable to get the "Url" property from this example? I get the error "Field or Property 'Url' does not exist": ClientContext ctx = new ...
0
votes
1answer
133 views

SP2013 online : set_formDigestHandlingEnabled Error

I get the error : Object doesn't support property or method 'set_formDigestHandlingEnabled' when I try to get the current SPContext object from javascript code in an Office 365 site. I am ...
0
votes
1answer
45 views

Convert Person/User Group to String

I am retrieving a list that contains Persons and would like to convert them to String, and also be able to count how many users are per list. The Person is retrieved as an Object. How can I solve this ...
0
votes
2answers
301 views

get Library document URL using Javascript client object model

I am working with SP.js to get data from a SharePoint library. Below is the code i am using: var clientContext = new SP.ClientContext(); var oList = ...
2
votes
0answers
34 views

Client WebPart (apppart), I need to explain some settings

Property element <Property xmlns="http://schemas.microsoft.com/sharepoint/" Name="Text" DefaultValue="Text" Multilingual= "true" | "false" PersonalizationScope="user" | "shared" ...
1
vote
1answer
175 views

how to use the gridview in SharePoint 2013 Hosted App

I want know how to use the grid view in a SharePoint-hosted App. Can any one provide information on this?
0
votes
0answers
67 views

Update a rating scale field of survey list using JavaScript

I have created a survey list which has 3 columns. One column is of type rating scale with value 1-5 . Using JavaScript I'm able to update the first two columns. But not able to do so for the rating ...
0
votes
0answers
79 views

SharePoint Online and execute query async

The code below is running in a Silverlight XAP which is using the SharePoint Silverlight client object model. The application logical flow is the following: first, a file is uploaded in extension ...
3
votes
1answer
58 views

change NavigateForFormsPages value to true using CSOM

I'm searching for a way to change NavigateForFormsPages property using CSOM but no luck till now. Anyone has idea to do it using CSOM
0
votes
1answer
49 views

Date functions with $select in REST API

I'm using the following REST call to get the data. Here is the url structure: SiteURL+'/_api/web/lists/GetByTitle(\''ListTitle+'\')/items?$select=AlternateThumbnailUrl,Title,Created this is ...