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

learn more… | top users | synonyms (1)

0
votes
1answer
29 views

problem getting date time

I am using the CSOM in javascript. I have a list which contains 3 text types and 2 date types. When I use: var listEnumerator = this.listItems.getEnumerator(); var collection = ...
0
votes
3answers
76 views

What is best practice to add list item in SharePoint 2013 javascript object model?

I need reference code to add an item to a list programmaticaly via javascript object model in SharePoint 2013.. Got many solutions online but not sure what js to include, whether ajax calls are need ...
0
votes
1answer
32 views

CSOM query certain date

I have a list that has an end date in. Is there anyway to filter out the dates that are passed todays date? function retrieveCurrentListProperties() { clientContext = new ...
0
votes
3answers
59 views

count items in a list javascript CSOM [duplicate]

I am wanting to count the number of items in my list. Using CSOM in javascript I have tried it but my code doesn't work. Where am I going wrong. Here is my code: var clientContext = new ...
2
votes
1answer
135 views

Can we access list from other site collection sites using javascript object model?

ECMAScript object model can only be used in SharePoint sites. So you can’t use this object model in an asp.net site to access SharePoint resources deployed in another url as this is cross-site ...
1
vote
1answer
610 views

Upload to DocLib with jQuery (and REST) without HTML5

Uploading Documents to SP 2013 with jQuery and REST work just fine (Properties when uploading Files using REST in SP 2013) but these methods require a HTML5 compatible browser. The problem is now I ...
0
votes
0answers
15 views

Linking a js file into a blank page in sharepoint then count how many items in a list

I have created a new page on my sharepoint site. I have embedded some html using the embed code <!DOCTYPE html> <html> <body> hello </body> </html> I have a js file ...
0
votes
1answer
33 views

getting data from a list sharepoint object model CSOM javascript

I have a list which I want to get information from using javascript. It doesn't show the list just certain things like how many items in the list. I am completely new to sharepoint so don't have a ...
0
votes
2answers
40 views

Can we use “ExecuteOrDelayUntilScriptLoaded” with application pages.?

Can we use ExecuteOrDelayUntilScriptLoaded in application pages. If yes, do I need to add sp.js to the project to make it work?
0
votes
2answers
45 views

How to get value of custom lookup field.?

I have code here, clientContext.load(collListItem, 'Include(Id, Fruits)'); clientContext.executeQueryAsync( Function.createDelegate(this, this.onQuerySucceeded), ...
2
votes
2answers
2k views

SharePoint client model and setting up lookup field

I have list A with "Title" column which is lookup column to List B. I need to update existing List B documents so that they will be linked to List A. However, SharePoint client context doesn't accept ...
2
votes
2answers
517 views

Sharepoint 2010 Client OM - How to get the Last approved document version?

I am trying to use sharepoint foundation 2010 as file store for a website. Every document update must go thru an approval cycle and finally gets to a approved status to show up on the website for end ...
2
votes
3answers
97 views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
4
votes
3answers
104 views

Is there a way to get Folder object from ListItem one?

This is my first post, so I'd like to say hello to everyone. I'm trying to get Folder object by its path in SharePoint 2010 client application using Client Side Object Model (.Net 4.0). I need to ...
0
votes
0answers
37 views

Get a document thumbnail URL using client object model on SharePoint Online

I am working in a SharePoint online based environment and I need to fetch the thumbnail url for a document in a library programmatically, using the .Net client object model (not EcmaScript). Is that ...
1
vote
1answer
480 views

Get all items with specific fields without query - SharePoint Client Object Model

Is it possible to get all items from a single list (getting specific fields) without using a CamlQuery? If I try to use context.Load(oList, ...), I can't use the Include method as the List class ...
1
vote
4answers
4k views

How to use javascript client object model in sharepoint designer?

I have to fetch data using javascript client object model and for that i have to use Sharepoint Designer 2010 only i have searched on google and there i got solution only by adding code in visual web ...
2
votes
1answer
143 views

Filter Calendar view by Title in SharePoint 2010

i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
7
votes
3answers
9k views

How can I use the SharePoint Javascript Object Model from a plain HTML page?

I would like to use the SharePoint Javascript Object Model from a "plain" html page (ie, not an .aspx application page etc.) Is this even possible? If so, what scripts should I reference? I've added ...
6
votes
4answers
4k views

Creating Nested Folders via Client Object Model

I'm trying to create nested folders in my document library so it looks like this: http://site/PublicDocuments/Folder1/Folder2/Folder3/ The document library "Public Documents" exists but none of the ...
4
votes
1answer
64 views

How can I read Secure Store Credentials using the Client Object Model?

I got an high trusted provider hosted application that use the App Only Policy. If I try to use server object model, sharepoint returns a context error. Is it possible to use the client object model ...
11
votes
5answers
3k views

WebServices or Client object model?

I am writing a Silverlight control which will display the data from SharePoint list for use in SharePoint 2010 site. I am considering wheather to use Client Object Model or SharePoint web services ...
1
vote
1answer
42 views

Looking to retrieve user's groups in SharePoint

I am running SharePoint Foundation 2010. I have a claims based site setup to use a trusted token provider. I am passing it a set of claims that determine the user's group. They look similar to this: ...
2
votes
1answer
718 views

App issue with SharePoint 2013 Developer Site

In SharePoint 2013 Developer Site: I am installing an app to my site and it worked fine with default stuff. I added some custom .js file in this app which will set the master page of site coll and ...
2
votes
4answers
3k views

Get value of Hyperlink field in Sharepoint 2010 list item

I'm trying to get the value of a field of type "Hyperlink or Image" (currently set to "Hyperlink" in the column settings that is being returned as part of a Sharepoint 2010 ListItem. I'm using the ...
2
votes
2answers
1k views

CAML Query for sub folder documents javascript

I'm trying to query for documents in a specified sub folder of a document library. Using U2U CAML builder, I can generate the query and return successfully within it. However, when I run the query ...
4
votes
1answer
856 views

Check if user is in a specified group

I would like to check with JavaScript if the current logged user is in a specified and specific group (for example called "Admins Group"). How can I do? Thanks
0
votes
1answer
1k views

Properties when uploading Files using REST in SP 2013

After a lot of research I finally got uploads via REST working in SharePoint 2013. But I would like to provide additional properties to the Add Function like Title. This code works so far but the only ...
1
vote
1answer
726 views

Update list column using client object model code in SharePoint 2013 goes in onFailure without giving errors

I am using javascript to write the client object model code in SharePoint 2013. I want to update a column of the form library but I am not able to do it. The code goes in the onFailure method without ...
1
vote
1answer
96 views

ECMAScript moveTo move document to another web in same site

I have studied and used the following post to attempt to move a document: moveTo and moving documents from one library to another This works perfectly when moving documents to different libraries in ...
0
votes
1answer
113 views

Check-In & Checked Out files inside folder in Document library using Client Object Model

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using. public void CheckOut()// CHECK OUT FUNCTION { try { ...
4
votes
1answer
94 views

What would cause CSOM.GetSubWebsForCurrentUser to return Access Denied

When using the CSOM Microsoft.SharePoint.Client.Web.GetSubWebsForCurrentUser returns a 'security trimmed' collection of all sub webs that the current user has access to. e.g. string currentWeb = ...
3
votes
1answer
297 views

Creating a SharePoint Wiki Page via JavaScript and REST or CSOM

I'm fairly new to developing SharePoint 2013 Apps, and I was tasked to customize the Create New Wiki Page for a Site. The user has to type in the Title, I do some processing, and then when everything ...
1
vote
1answer
812 views

Sharepoint 2013 App access cross site collections

I'm using SharePoint 2013 and I wrote an AppPart that needs items of a list other than it's host site collection. But it keeps popping up an error indicating that my request has been failed. Access ...
3
votes
1answer
2k views

Copy file using javascript client object model - new version

I have a solution that adds a custom button to the ribbon in SharePoint 2010 and am using the javascript client object model behind the scenes to copy a file from Library A to Library B when the ...
0
votes
2answers
925 views

Delete Item in Document Libarary using Client Object Model?

I have custom Database, this Database having SharePoint Item URL like(http://site.com/Shared Documents/a.pdf), so my challenge to remove this file from sharepoint Library using Client Object Model.
0
votes
1answer
81 views

get items in specific summary task folder in SharePoint 2010 via client object model in c# [duplicate]

i want to get items in android via web api web service. when user click on items web api return values step by step from sharepoint task list. using (ClientContext context = new ...
3
votes
1answer
88 views

How to check whether Content Database is read-only or not?

How to check whether Content Database is read-only or not using client context ? we can easily get using server object model but how to do this with Client Object Model
1
vote
1answer
151 views

How can I get a list of all user alerts set on a site collection in SPO?

I need to retrieve a list of user alerts set on a particular site collection in SharePoint Online. This is possible through the web UI under Site Settings -> User Alerts, but requires that I choose ...
0
votes
0answers
16 views

SharePoint 2013 - disposing SP.ClientContext in JavaScript [duplicate]

I'm little bit confused about JS's COM in SharePoint 2013 and disposing ClientContext object. As far as I can see from earlier versions of SP (2010 mainly) you had to dispose ClientContext and ...
2
votes
1answer
123 views

How to Pass parameters from Javascript Client Object Model to Report Viewer Web Part?

I have some SQL Server Reporting Services (SSRS) reports that take parameters. I am displaying these reports via the SSRS Report Viewer Web part on a site page. I have the parameters that are needed ...
3
votes
3answers
6k views

Get User via JavaScript Client Object Model

Is there a way to get user information via the JavaScript Client OM? Something similar to the clientContext.Web.EnsureUser(userName) method. I am aware that there is the SPService JQuery library, but ...
3
votes
2answers
560 views

SP JSOM: is there any way to get the group by name instead of getById(10)

is there a way I can use the below with something like getByName(thisGroup), instead of getById(10) in SP 2010 jsom: function setSomeUsers(dataObj, projGroup) { var clientContext = new ...
0
votes
0answers
21 views

How to access another web, by name in client object model

Iam in site B . There is another site named A .I want to access a list A of site A from site B using client object model. Can I access it I am using below code. var context = new ...
1
vote
2answers
59 views

Error while adding a Calculated column to a list using Client Object Model

I am trying to add some fields to list using the client object model. Everything is working except the Calculated field. Every time SharePoint gives the error: An error occurred while parsing ...
2
votes
1answer
59 views

Detect Authentication Type using Client Object Model

Is there a way of detecting the type of authentication used by SharePoint from the client browser? Edit It doesn't have to be via the Client Object Model. If there is a SharePoint JS parameter that ...
1
vote
0answers
69 views

Enterprise Keyword not updating in SharePoint 2010 using client object model

Tried the following, it didn't give any error, but that column wouldn't update, while the Title did. please help me to resolve this problem using (Microsoft.SharePoint.Client.ClientContext ...
0
votes
1answer
553 views

How to get the managed metadata column value in a list client object model

I am trying to get values from a list for different columns like Title ,ID ,Region Where Region is a metadata column . I am able to get all the values except metadata column values . Pleas tell me ...
0
votes
4answers
2k views

Object doesn't support property or method 'get_item'

When i try with this code i got error Object doesn't support property or method 'get_item' . Please help me to resolve function showTitles(urlColumnName) { var selectedItemIds = ...
1
vote
1answer
113 views

Not able to fetch Term store and related terms using client object model

I want to fetch termstore, Termsets and related terms.However, Iam not even able to fetch the termstore. Below is the error message. TypeError: termStores is undefined termStoresEnum = ...