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

learn more… | top users | synonyms (1)

0
votes
2answers
30 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
21 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
13 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
44 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
22 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 ...
0
votes
1answer
57 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, ...
0
votes
1answer
49 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
35 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
36 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
43 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
27 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
15 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
48 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
51 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
23 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
46 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
19 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
58 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
70 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
36 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
46 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
41 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
58 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
22 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
32 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
33 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
45 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
76 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
13 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
108 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
39 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
37 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
46 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
44 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
61 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
44 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
151 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
56 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
85 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
16 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
90 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
2answers
76 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
128 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
141 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
186 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
51 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
103 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
61 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
46 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
146 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 ...