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

learn more… | top users | synonyms (1)

0
votes
2answers
23 views

How to get all subsites using ClientContext Object in SP 2010

I need to find all the subsites of particular sites and fill the drop down using ClientContext Object
0
votes
1answer
9 views

How to fill drop down dynamically using ClientContext object in sharepoint 2010

I need to fill the dropdown from the sharepoint list using ClientContext object.
0
votes
1answer
15 views

An error “The remote server returned an error: (403) Forbidden.” [duplicate]

Below is the code and I am getting error in context.ExecuteQuery(); using (ClientContext clientContext = new ClientContext(url)) { NetworkCredential credentials = new ...
0
votes
2answers
55 views

Loading image freezing with Javascript Object Model and jQuery Promises

I have some code using the javascript object model to get items for several dropdown boxes on a form. I also heard that using Promises was the way to go for speeding up things and created 2 wrapper ...
0
votes
1answer
19 views

JSLink Client-side rendering

I need to render some fields client-side, I followed this guide: Client-side rendering but this code is not working: (function () { // Create object that have the context information about the ...
0
votes
0answers
16 views

Run MVC App with Sharepoint as backend for Document Storage

My company has a small sharepoint site that we're hosting. We are almost exclusively using it for document storage, and we don't have very many documents. At the same time, we are developing an MVC ...
0
votes
0answers
17 views

Upload/ download multiple documents to library It need to upload in each folder for an ID…

I need to upload multiple document form .net Aspx page to SharePoint document library. In .net having a multiple record, For Each record having the Multiple file upload option having different ...
0
votes
0answers
25 views

Document Set created using SPServices shown as folder in WelcomePageView

After creating Document Set programatically using jQuery SPServices, if i click on Document Set Name it showing AllItems.aspx page instead of default docsethomepage. I checked in the Welcomepage view ...
0
votes
0answers
15 views

Remote access development

I'm relatively new and have tried to search posts regarding this problem but I'm not sure whether I'm hitting the right sites. The scenario is this. I have a sharepoint 2013 installed on ...
0
votes
1answer
48 views

Getting fully qualified FieldUserValue instead of actual user name from SharePoint

I'm working on my first C# program, and it's a pretty simple program that uses a view of a SharePoint page to go through and delete things that are older than 5 days on that page. Before deleting the ...
0
votes
1answer
29 views

CAML Query works in U2U CAML Query Builder, but not SharePoint

I built a CAML query using U2U CAML Query Builder and it works when I execute it in the builder, but when I go to JSOM in SharePoint, I get the entire list and none of the filters from the query work. ...
0
votes
1answer
30 views

why all documents are imported in check out

I've an issue with an import of documents in client object model. My import run correctly an imported my documents not check out and after 12h, every documents arrive check out. I changed nothing in ...
0
votes
0answers
27 views

How to fetch 'nth ' items from a SharePoint List one by one through Client Object Model in SharePoint Online

I want to fetch nth Item from a SharePoint List from a SharePoint Online (Office 365) site and then compare it with the other Items of the SharePoint List. I am doing the following code. Can anyone ...
1
vote
1answer
59 views

An unhandled exception of type 'System.Net.WebException' occurred in Microsoft.SharePoint.Client.dll

I try to access SharePoint list from a console app in .NET. My environment doesn't have SharePoint installed one and I write code in VS 2013. I want to access SharePoint 2013 list data. When I run my ...
1
vote
2answers
52 views

Reference problem when trying to replace a master page file while keeping the original in CSOM

I have some logic that does some custom file provisioning in CSOM. It basically tries to upload various files located on a provided-hosted (Azure) site to mapped locations in the Sharepoint host site ...
1
vote
2answers
28 views

Attach file in CustomList Item using Sharepoint.Client object

Hi is there a way to attach file in specific Custom list item? Currently i tried to add files on the root folder using below code: using (ClientContext context = new ...
1
vote
1answer
13 views

SharePoint integration outside farm

Can someone provide me an overview of the possible ways of interaction with SharePoint from an external source. For example add items to a list from an application not running in the farm. In a farm ...
1
vote
1answer
26 views

Guess SharePoint version based on connection parameters

My client application uses the SharePoint Client Object Model against SharePoint 2010 and 2013. I would now like to add support for SharePoint Online. Users of my application specify the 'Url' to ...
1
vote
2answers
74 views

Get list default view url in SharePoint JSOM Client Object Model

I have simple JSOM script to get all the list and it's default view url but i am not getting default view url property var context; var lists; // This code runs when the DOM is ready and creates a ...
0
votes
2answers
33 views

How are Deferreds different from callbacks

I have following piece of SharePoint JavaScript client object code which works perfectly without throwing any error. $(document).ready(function () { //don't exectute any jsom until sp.js ...
0
votes
0answers
22 views

N number of call for /_vti_bin/client.svc/ProcessQuery

I have on application page which will display data from list. For that I have write client object model code which is as follow: var PageList = _spPageContextInfo.siteAbsoluteUrl + '/xxxx'; ...
1
vote
1answer
88 views

Field names in announcement list in Sharepoint Online

I am trying to add fields to an announcement list. I have successfully added various fields with single-word names: announcementy.Fields.AddFieldAsXml("<Field Type='User' ...
1
vote
1answer
59 views

How to write a WCF Service for SharePoint 2013 hosted App?

I've deployed a WCF Service in SharePoint. I am able to retrieve data from it using URL: http://nit-hv8-itr4:1111/_vti_bin/PresidentsService.svc/GetAllPresidents The problem occurs when I try to ...
1
vote
1answer
75 views

Issue in REST call

I have two methods which will be call on bashed on condition Code: //Method to add item in TT items list. function addTTItemsList(url, listname, itemTitle, columnOrder, rowOrder, listName, ...
1
vote
1answer
131 views

O365: Unable to get property 'get current' of undefined or null reference

I'm on SP2013 in an O365 environment. I am trying to pull some data from a list and render that data using the Google charts API. I am doing this in a content editor web part that points to an HTML ...
0
votes
1answer
62 views

vb.net client object model: get wikipagelibrarytitle/list by url

I am using the .net client object model for SharePoint 2010. I am able to create a new wiki page in my wikipagelibrary using the following method: Dim wikiLibrary = ...
0
votes
1answer
49 views

Modifying folder contenttypeid via REST

I have a library where a customized SPFolder content type is defined. When I use the following code in generating the folder I'm perfectly able in creating one. However, I seem to be unable in using ...
0
votes
1answer
60 views

CSOM get items from subsite

I want to be able to retrieve items from a subsite. I've found some code which works but only on the current site. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(MainFunction, ...
0
votes
0answers
38 views

Using the client obeject model getting the multiple lines of text field append changes to the same text

I have a SharePoint List in site. It has a custom list. I added a new field with type 'Multiple lines of Text' and in Additional Column Setting section selected 'Append Changes to the existing ...
0
votes
1answer
21 views

Overide Core.js Options?

What is the best way to be able to manipulate objects in the DOM using JQuery/JavaScript, specifically in an InfoPath browser enabled form in SharePoint 2010? If I try to grab a value from an input ...
0
votes
1answer
60 views

Get ctx based on list GUID

I want to get list ctx based on GUID. My requirement is to develop a context menu security webpart. I want to display the list/library context menu items in my application page which is user ...
1
vote
1answer
87 views

SP2010: Client object model: add new wikipage to document library

Is it possible to create a new wiki page using the client object model and give it some content ("<h1>Welcome to the SharePoint!</h1>")? I'm using VB.Net
0
votes
1answer
34 views

Deleting a single item from RecycleBin gives error “operation is not valid due to the current state of the object.”

I have below code , but it gives mentioned error on ExecuteQuery() after item.DeleteObject(). Site collSite1 = _ctx1.Site; RecycleBinItemCollection collRBI1 = collSite1.RecycleBin; ...
0
votes
0answers
90 views

Attach file to list item in SharePoint 2013 Sandboxed solution

I have developed a visual webpart in Sandboxed solution for SharePoint 2013/Online. I am trying to add an attachment to list item at the time of creating the item using Client Object Model. I have ...
0
votes
0answers
20 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
185 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
92 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
52 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
57 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
58 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
89 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
32 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
52 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
43 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
73 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
219 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
18 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
175 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
56 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
74 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); ...