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

learn more… | top users | synonyms (1)

0
votes
1answer
93 views

ecmascript/javascript to check current status of timer job

I want to show sharepoint notification when user opens a list form using oob. I am basically doing some sync with external list and sharepoint using timer job. For this i want to check if a specific ...
1
vote
2answers
631 views

Retrieving the Name of a Document Saved in a Document Library Using the Client Object Model

foreach (SPListItem item in listitems) { String value = item.File.Name; } The above sever side code shows how to retrieve the name of a document which is saved in a SharePoint document ...
1
vote
2answers
581 views

Access denied, from an app, when getting List items from a different web applcation

I have create a SharePoint Hosted App and installed on a Site which is located on WebApplication1. This app tries to get list items from a list in a site which is located on Webapplication2. I have ...
1
vote
0answers
195 views

Update value of column in Form Library using CSOM

I want to update the value of a promoted field from infopath form by csom code. I have written the following code but it does not seem to work. Please guide to know what is incorrect. function ...
0
votes
0answers
108 views

Copy list item and add it to the same list by copying their ID using ecma script

I need to Copy a list item which is selected and add it to the same list using ecma script..no workflow and designer is allowed(only client object model). I tried to copy the list items but i havent ...
0
votes
1answer
410 views

Get ListItem ContentType and Metadata values at a specific version

I'm trying to figure out a way, using the Sharepoint Client Object Model, to get the content type and the metadata values of a listItem at a specific version. I can get the different versions using ...
2
votes
0answers
268 views

ssl certificate error when using Client object model

I wrote an app that gets information from some Sharepoint 2010 lists and displays it to the user. It works fine on my development machine.But when I copied the exe to another desktop machine i got the ...
0
votes
1answer
1k views

Why, on occasion, does executeQueryAsync() fail to execute success OR failure method?

My intent is to dynamically create a grouping of EditControlBlock (List Item Menu) custom actions for two different list view pages. Upon loading the Active page, all custom actions are destroyed, ...
1
vote
1answer
9k views

How to reterive list item values using CAML query?

I have one Date and time column and text colum. I need to retrieve list item value based on this both column using CAML query.. For ex: Columname---> Date value for date would be-6/1/2013 and ...
0
votes
1answer
653 views

Exception when trying to execute query on large library from client object model

I have a document library with ~50,000 documents in it. I have a Client Object Model query which retrieves the ListItems in the document library. This query previously worked when the document library ...
0
votes
1answer
123 views

SP2010: possible to override styling of the upload aspx dialog from calling parent page

This may be a silly question, but I am wondering if it's possible to override styles for the upload.aspx dialog to customize the look...not from the upload pages content but form the calling 'parent' ...
3
votes
1answer
246 views

Bug? 2010 Document Sets via Client Model shown as folder

I got a frustrating problem: When I create a document set via Client Object Model, the document set is created as intended as far as it concerns the appearance outside the treeview. It's shown as ...
1
vote
1answer
1k views

SP2010 JSOM: updating with CAML where clause

So I learned and have used the following to update a list item by ID using Javascript Client Object Model: function updateItem(passedID) { var ctx = new SP.ClientContext.get_current(); var myList = ...
0
votes
4answers
340 views

How to get the list item column values based on the html drop down and display in the alert box using Javascript?

I have a html dropdown list(team name) which contains three values A,B,C I have a sharepoint 2010 List A which contains Team name and Email. List A Teamname Email A A@test.com B ...
0
votes
2answers
677 views

How do I delete potentially many items from more than one list using JavaScript?

I'm trying to use a script to remove multiple list items from multiple lists. I'm using Javascript because I don't have access to Visual Studio. The idea is there's a Parent List item in a ...
4
votes
2answers
2k views

SP2010 REST API from Javascript: how to set multiple fields to filter on in the URL

weird but i can't figure this out or find a solution anywhere.... I want to filter on two values on a GET in REST URL from javascript. So since this is from ECMA I am just using filtering in the ...
3
votes
1answer
482 views

How can i add multiple items to a lookup

I have a CSOM console app that uploads files to a library, then it creates a lookup field in another list and also adds lookups to the files in my library. The following code adds a single item in ...
0
votes
1answer
133 views

Possible to upload to a style library remotely using client context?

As title says. I have a win forms app that connects to a remote SharePoint instance using the client context. How can I now, programmatically, upload a file to this style library and what permissions ...
1
vote
0answers
285 views

How to get the distinct values from sharepoint list using GetListItem and bind to dropdown?

I am Passing the XML for getting List item and binding to dropdown. Here i have shown the code.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
0
votes
1answer
181 views

Anonymous Users and managed navigation

I have a custom javascript that builds an extra navigation menu from a Managed Navigation termset. Currently this is using JSOM and is great - when a user is logged in. The problem is anonymous ...
2
votes
1answer
3k views

Get List Items using ECMAscript CAML query

Hi can anyone show me how can I retieve list items based on 2 fields using ECMAscript CAML? I have a list where I have uid as number and city as text. I want to retrieve all items where uid = 100 and ...
2
votes
0answers
220 views

Dynamically Setting a List View on a WebPart Page

I have been unable to load a page showing a dynamicaly selected View. I can not just display the List itself (Although this would allow me to specify the View in the URL) because I need to modify ...
0
votes
1answer
275 views

Any way to access organisational data?

I would like to access the data that feeds the 'organisation chart/structure' web part in SP 13 online. Preferably JavaScript. I can't find any reference to any part of the api that would allow me to ...
0
votes
1answer
23 views

COM ListItem not updating

ClientContext cl = new Microsoft.SharePoint.Client.ClientContext("http://" + "mysharepoint" + "/" + SubWeb); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("myuser", "mypass", ...
3
votes
1answer
299 views

Is it Possible to create Client Web Part enum property dynamically?

I am creating an SharePoint Hosted App using CSOM technology. I want to set the ClientWebPart Property dynamically. I want to add enum property Dynamically. App will bring all the list name from my ...
0
votes
1answer
412 views

502 DNS lookup failed error when using SharePoint 2013 CSOM

I am facing an issue while using CSOM in SharePoint 2013. I have configured an alternate access mapping for our site to run on http://mycustomdoamin.net/ The site is running fine and I am able to see ...
0
votes
1answer
55 views

Reference for ECMAJavascript Library gets?

Is there a method reference for all the gets/sets in the. ECMAScript JavaScript library for sharepoint 2010. I know the obvious answer is MSDN but I have trouble finding anything there. For example I ...
0
votes
2answers
68 views

JQuery on SharePoint 2010

What are the business case scenario when JQuery controls are used in CSOM programming in SharePoint 2010? I mean what are business case scenario when JQuery frequently used in SharePoint 2010? Which ...
3
votes
1answer
3k views

SP2010 Javascript REST API: updating list item using MERGE and POST

I am trying to use REST API approach in javascript to update a sharepoint list item where I have an id. So I use GET and POST to create records, but per MSDN article it looks like the way to do this ...
2
votes
1answer
174 views

Get list of installed apps using Client Object Model

I have been trying hard to find any example, resource which explains how to get a list of installed apps in SharePoint 2013 environment using Client Object Model. So far I have found nothing. Could ...
1
vote
1answer
196 views

ClientContext.Load on data that is already loaded

I need clarification how does ClientContext.ExecuteQuery method works in client context. For example if I use ClientContext.Load to load the data that is already initialized - will it make an request ...
1
vote
2answers
931 views

SaveBinaryDirect Throws Unauthorized When the Client Object Model Works fine

I have decided to use the SaveBinaryDirect Method to upload documents to the sharepoint site due to not having the request/file size limitations that the client object model has. The application does ...
5
votes
3answers
1k views

Create a new wiki page using the 2013 Client Library

I'm using the SharePoint 2013 Client Library and am trying to generate new wiki articles. I'm able to connect, retrieve the web, find the list, but I can't add items. I feel like I need to be using ...
1
vote
2answers
144 views

How to write a caml query that filters by .pdf or folders?

How can I write a CAML query (for javascript ecma) that filters by only pdf documents or folders in sharepoint 2010? (this is for document libraries) Thanks.
0
votes
1answer
87 views

Creating directory structure from custom ribbon action

Environment: 2013, VS2012 I'm trying to develop a custom ribbon button for a document library that creates a folder (ie: a new project) and populates it with a hierarchy of sub-folders. I have some ...
1
vote
0answers
129 views

how to update Document in doc set

I've been trying to update the file name of a document inside of a doc set. I continually get either a "Invalid data has been used to update the list item. The field you are trying to update may be ...
3
votes
1answer
2k views

SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively

I have seen a lot of examples and questions about this out there but nothing I have found has helped me accomplish this. I need to be able to grab all the names of the documents within a given ...
0
votes
2answers
1k views

Why does JSLink code associated with a site column fail to render on first load of document library view, but renders successfully on page refresh?

Bit stumped on this one, wonder if anyone can help? I've created some JavaScript which is stored in the Style Library and referenced by the JSLink property of a site column. When I navigate to a ...
2
votes
2answers
334 views

SP2010: Get all library names within a site using javascript client object model?

How do I get the names of all libraries within a given site using jquery/javascript? the only way i know of is using getByTitle('listtitle'), but I would like all names of libraries (hopefully there ...
0
votes
1answer
101 views

Dependencies in the jscript file

Lets say, I have custom-dialog.js that depends on custom-notifier.js and this one depends on sp.js. What's the best practises to write dependencies inside mine custom .js files?
0
votes
1answer
274 views

sharepoint 2010 rest api javascript error: 5009 sys is undefined

I am running into something that I haven't really seen before, and I have been using this approach quite a bit lately for a variety of pages. SharePoint 2010 javascript using REST API to grab data: ...
0
votes
1answer
272 views

Retrive value of a url field using client object model

I want to get the value of a URL field type using client object model. As I am working with share point app so can't use the server object model. Can anyone please hepl me out. Thanks
1
vote
0answers
80 views

Calling multiple times SaveBinaryDirect result in Socket Exception

I've been using Client-Side Object Model in C# for Sharepoint2010 for a few weeks, and I've tried uploading files with File.SaveBinaryDirect and by adding the file to the list and then calling ...
1
vote
2answers
3k views

How to use client object model (javascript) to get a custom user profile property?

In my sharepoint 2010 environment, I am using the client object model (ecma script/javascript) to display people information. In my user profile service in sharepoint, I have created some custom ...
0
votes
1answer
4k views

Getting 'ExecuteOrDelayUntilScriptLoaded' undefined error in aspx page

I created a test custom .aspx page in sharepoint 2010 and I want to get client object model (javascript) working on it, without loading the master page. However when I load the page, I get this ...
0
votes
1answer
210 views

access denied when getting personal site (JSOM)

I am trying to get my blog posts by using JSOM, following is my code to get personal_site/blog which generates "unexpected response data from server", when I debug the JavaScript it shows "Access ...
3
votes
2answers
660 views

Accessing files in SharePoint AutoHosted App 2013

I am creating an AutoHosted App in SP 2013 and trying to access the file under one folder of the remote Web (need to pick the file from current project directory location and pass that file to another ...
1
vote
2answers
1k views

How to apply CAML in SharePoint view

I'm using SharePoint client object model and trying to query specific view but not getting the correct method to do so. Here is my code, using SP = Microsoft.SharePoint.Client; using ...
2
votes
2answers
3k views

Why is list.GetItems pulling more fields than specified in my CamlQuery?

I am trying to pull back just specific columns in a list using the .NET client object model. (i.e. using Microsoft.SharePoint.Client;) This is the CamlQuery specifying just fields in the DefaultView ...
3
votes
2answers
2k views

SP 2010 - Client object model (javascript) - How to use get_listItemCollectionPosition for paging?

This is my code: When I call the function to get the items, it fails (doesn't go to the fail function, it goes into the success function but crashes when I try to get the position object), and I get ...