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

learn more… | top users | synonyms (1)

1
vote
2answers
449 views

Control JavaScript with Ribbon Button

my aim is to add a Ribbon Button which is opening a printing dialog for a selected file in a document library. I already added the Button with SP Designer and linked it with a html file which is ...
1
vote
2answers
1k views

Connect to SharePoint Online using the Client Object Model from .NET 3.5

We have an on premise SharePoint 2010 farm, and a SharePoint Online 2013 farm. We would like to be able to have a solution running on the on premise farm that will talk to the online farm. Since the ...
0
votes
1answer
324 views

Date from list being displayed wrong on graph created programmatically

I have a list, where one column is of type datetime and another a numeric value. The records are being entered correctly, in the form: ID Col01 Col02 01 05/02/2013 6 02 05/03/2013 9 ...
1
vote
2answers
55 views

Track users opening files from the farm?

Our internal auditors have made a request to produce a regular report that shows when users access certain files. With this in mind I was wondering - is there a way in the object model or otherwise ...
0
votes
2answers
435 views

Programatically update profile field(s)

I have a requirement to update user profile fields. I'm able to query the fields, of course, using the CSOM API in Javascript. But, as per here - ...
1
vote
1answer
1k views

Client Object Model - Select distinct

I am using ClientObjectModel (C#) to retreive data from a custom list, which is structured like this: What i need is some kind of "select distinct" which retreives only the categories, without ...
2
votes
2answers
1k views

Allow users to see other users in sharepoint groups with CSOM

How can I allow users to view the users in a sharepoint group? Currently if I try to query users in the site groups using the client object model I get an unauthorized exception. For example, if I am ...
1
vote
0answers
118 views

Will content type names change with locale? (Sharepoint 2010, client object model)

I'm making a content type/id hashmap. The relevant part of the code is something like this (js): contentMap[content.get_name()] = content.get_id().toString(); I'm worried that the name will change ...
0
votes
4answers
365 views

Multiple Webparts with same JavaScript on one Site (another Problem)

I rebuild the site (site before). I have on the site two or more Webparts. These CEWP are including the same JavaScript and this the JavaScript is displaying a table via: ...
6
votes
2answers
1k views

how to set list alert using javascript in sharepoint 2010?

I need to set a list alert for current (logged in) user using javascript. var currentcontext = new SP.ClientContext.get_current(); var currentweb = currentcontext.get_web(); ...
1
vote
2answers
192 views

CAML Query works in my VS2010U, but not on anybody else's computer

I have a list with records uniquely identified by project numbers. This is column 5 - Col05 in my list. It works fine when I run the code, and I am getting the expected record. I can also read the ...
3
votes
1answer
278 views

Retrieve property bag for sub sites using JSOM

I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
0
votes
2answers
683 views

Get current language via Client Object Model

I need to get the current display language of a web via Client Object Model (C#) from a provider-hosted App. The app runs inside a Client Web Part (IFrame). I am aware of this solution but think it is ...
0
votes
2answers
333 views

Multiple Webparts with the same Javascript

I have a site with multiple Webparts. Some Webparts are linking on the same .html file. The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
1
vote
2answers
236 views

Advice on starting development for SharePoint in C#

I'm about to start development of client-side application (C# using .NET 4.0) that connects to SharePoint. Mainly to download/upload documents. I've found out that there are several options: using ...
2
votes
0answers
1k views

How to get a client context for App in provider-hosted Apps?

I use a provider hosted Apps, so need to work with an App Web and Lists. Could anybody provide a code snippet to get ClientContext() of the App? Can I do something like this? Uri appWeb = new ...
0
votes
2answers
2k 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
67 views

Conditional Formatting very slow

i am using SharePoint 2010. I built a webpart which is displaying elements from another list on the same page. This works fine and fast but when i put in the conditional formatting the loading process ...
8
votes
1answer
1k views

How to get WebPart on current page by name/ID with javascript?

I have a page with some webparts on it, I want to get specific one (by name or ID) using client javascript. I try this code var ctx=SP.ClientContext.get_current(); var web = ctx.get_web(); var site ...
-1
votes
1answer
470 views

SharePoint Client-Object-Model - Return List Item Counts by Created Month

Looking to get monthly totals of items from a list using the SharePoint COM/SP Services. My intention is to pass this data to a D3 chart.
2
votes
2answers
721 views

Get list properties via JCOM

How do I get list properties like BaseTemplate, ItemCount, ListItemDeletedDate etc. via Javascript Client Object Model for SharePoint 2013?
3
votes
2answers
739 views

Programmatically add item to sharepoint list from window application

How to add item to SharePoint list from window application using claim based authentication ? it gives 401 forbidden error. user is authenticated from ADFS server.
1
vote
1answer
688 views

Is it possible to check if a document has unique permissions using SP2010 Client Object Model

I have a 2010 site that has many documents in many different folders. I believe a number of them have broken permission inheritence. Is there a way i can code a C# console app to utilise client object ...
2
votes
1answer
6k views

Javascript get SharePoint List items, enumerate, and locate and pin each item on Bing Map

The map is rendering and debugging in IEf12 does not show any error with loading the list. I am using a CEWP referencing this file - SharePoint Online (Office 365). What's wrong with this code? ...
1
vote
2answers
316 views

SiteMap using ECMA script Client object model

Iam trying to create a sitemap for sharepoint sites to get a hierarchial structure of all the subsites within a site. but Iam only able to get sites of that site eg: -Lets say i have created below ...
0
votes
1answer
98 views

SP2013 App icon not rendered, only App link is displayed + how we can set the sliding transparent hover text over App icon?

I am facing an App Icon related issue. I am creating SharePoint Hosted App which I am deploying to SP 2013 Developer site. By default any app will have the AppIcon set under Images folder. Also it is ...
2
votes
1answer
1k 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 ...
1
vote
2answers
3k views

How to modify user profile properties using javascript in SharePoint 2013 (Online)?

I need to modify user profile properties using javascript (REST or CSOM). How can I do that? I don't see any methods in MSDN documentation about modifying profile properties without server code. ...
3
votes
3answers
838 views

Dispose in Client Object Model

Should objects be disposed when using the client object model? If so, which ones? There seems to be plenty of information on this for server side, but nothing from Microsoft specifically about ...
3
votes
1answer
332 views

how to load a folder given just a ServerRelativeUrl using Microsoft.SharePoint.Client

In my application I have a url of a folder as retrieved by folder.ServerRelativeUrl() eg. /consulting/TeamSiteTemplate/Documents/ Now I want to get a list of folders inside this folder. I use this ...
1
vote
2answers
763 views

Error while pdating Master Page through JavaScript Client Object Model using SP 2013 App

I have created a Site Collection in SharePoint 2013 online. In this site I am trying to update Master Page through JavaScript Client Object Model. My JQuery scripts are able to change the Site Master ...
2
votes
0answers
144 views

Sharepoint Online - How do I retrieve document's social tagging information

Is there any way I can retrieve documents' social tags and notes using Client Object Model? I'm on the client side so I don't have access to Server Objects. I've been searching all around but found ...
2
votes
2answers
1k views

Setting Search Center URL in SharePoint 2013 using Javascript CSOM

In SharePoint 2013, I am trying to access Search object through JavaScript CSOM. I want to know the object which can give me the access to Search Settings under Site Settings. I tried looking under ...
8
votes
3answers
18k views

How to get a file using SharePoint Client Object Model with only an absolute url at hand?

We have a database with absolute (full) links to SharePoint files. If a user wants to download or get checkoutstatus information about the file, our program needs lookup that information in ...
0
votes
1answer
37 views

SpcalenderView Javascript on Mouse hower

I have one issue with spcalendarview. I just wanted to show spcalender item to the contain editor web part from the link here but i wanted to my custom page into the contain editor web part so how to ...
0
votes
1answer
284 views

Getting Filtered results by Date column from a list with BCS and SharePoint 2010 JavaScript Client Object Model

I'm trying to get the filtered results by a column type DateTime from a list filled with BCS using JavaScript. I've tried everything to get those results with query like: "<Where>" + ...
5
votes
2answers
1k views

ScriptResx.ashx Not Working

I'm trying to use ScriptResx.ashx in an Application Page I'm building (just to test out the functionality) and every time I try to grab a resource from what should be a JavaScript object, SharePoint ...
2
votes
1answer
184 views

Javascript CSOM SP.List get_onQuickLaunch

I am trying to get the onQuickLaunch flag from a SP.List using javascript. I am able to get other list attributes, however when I try to execute list.get_onQuickLaunch(); I get an error Uncaught ...
1
vote
1answer
617 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 ...
4
votes
3answers
4k views

SharePoint 2013 Call the REST API from SharePoint hosted app

I've successfully deployed a SharePoint hosted app to office 365 and my local on premise installation. All the app aims to do is call the REST API for the user profile manager to get the profile ...
1
vote
2answers
786 views

accessing the SP2013 Site Settings-->Master Page/Navigation settings etc using CSOM (client side object model)

I want to access the SP2013 Site Settings-->Master Page/Navigation settings etc using CSOM (client side object model) using JavaScript or REST service or Webservice which I can call from Javascript. ...
0
votes
1answer
642 views

inserting multiple user /group to a list item of type spfieldUserValue

I have used following code to add users and groups to a list item of type SpFieldUserValue. it works if there is one single user or group in my client side people picker but if there is more than one ...
3
votes
1answer
991 views

Best way to access SharePoint (online) from a Windows 8 RT/Metro application?

I am developing a Windows 8 tile app/Metro (Windows RT) application. I have experienced some problems linking with the C# client object model assemblies due to limitations in RT. I was hoping I ...
1
vote
1answer
129 views

I am confused about the Javascript Client Object Model and when it can be used

Is it only intended for use "inside" SharePoint? Using the .Net/C# client object model I can execute applications on my local machine and access a remote SharePoint server. I can only find examples ...
0
votes
0answers
461 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...
1
vote
2answers
147 views

Can anyone recommend an explorer using the client object model?

I'm looking for an explorer for a sharepoint site that's using the client object model undercover. It would be great if this explorer would show all the information/properties one could get from this ...
4
votes
1answer
896 views

Error using javascript to retrieve a SharePoint list's items

I am trying to use this method to query items of a column of a list in my SP site via javascript (the reason I am doing this is to display that info on the page by modifying the html tags in the DOM), ...
2
votes
1answer
254 views

Display all documents from multiple document libraries using client object model

Can anyone help me with the code to display documents from multiple document libraries using javascript client object model. I have done displaying from single document library.
0
votes
1answer
551 views

Fill the fields in new form for an item

I've came across a requirement where I need to fill some of the fields in newform. So basically we start from view item, where we can see an existing item in a list, then we click something like move ...
6
votes
2answers
13k views

ExecuteOrDelayUntilScriptLoaded not executing after page publish

In SharePoint 2013 I have a page that is using the Script Editor web part. In the script editor web part I have the following: ExecuteOrDelayUntilScriptLoaded(startIt, "sp.js"); function startIt() { ...