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

learn more… | top users | synonyms

0
votes
2answers
3k 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
71 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 ...
9
votes
1answer
2k 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
490 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.
3
votes
2answers
1k 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?
0
votes
5answers
1k views

SP2013 CSOM, am I missing something?

The CSOM samples from Microsoft.. the samples I find online.. blog posts and resources.. ALL seem to use CSOM from a C# app. If the push is to write Apps and use a client-side model, why are there no ...
1
vote
0answers
178 views

SharePoint-hosted app, with edit mode to update its own properties

I'm using the editMode parameter to detect and display a simple web part admin UI. When the admin clicks a particular button, I want to use CSOM to update the web part's properties for the page it is ...
1
vote
2answers
905 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
983 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
7k 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
378 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
159 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 ...
2
votes
2answers
5k 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
1k 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
3answers
3k views

JavaScript and CSOM Unable to update a new item lookup field with a string

I have a list MyUsers that has a lookup field deptRef that references the Title in my departments list. Fine and is easy for my users to update the MyUsers list and select the relevant department. ...
3
votes
1answer
607 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
987 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
158 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
2k 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 ...
11
votes
4answers
29k 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
38 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 ...
13
votes
2answers
1k views

REST and CSOM much slower than List Web Service

lists.asmx = Web Service listdata.svc = REST API client.svc = CSOM Using JavaScript to query a list using the 3 available APIs, I'm finding lists.asmx responds much faster than listdata.svc or ...
0
votes
1answer
364 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
2k 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
215 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
733 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
5k 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 ...
2
votes
2answers
7k views

access additional lookup fields using JavaScript and CSOM

In visual studio I have added lookup field (SubMenuItemIdRefTitle) to list definition listA that references ListB. I have also added <ViewFields> <FieldRef ...
1
vote
2answers
986 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
830 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
1k 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
140 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
527 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
3answers
1k views

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010?

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010???? I am using following Code... // Create new list for restore List Item from List ...
1
vote
1answer
412 views

Help using the client side object model with javascript and jquery, reading an item

So I usually only deal with server side code, and need some assistance. in c# i was able to just do something like, numStirng = listItem["fieldName"].toString(); num = Convert.ToInt(num); ...
1
vote
2answers
156 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
1k 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
3k views

Accessing a list from app web on host site generates access denied

I am trying to get title of a list which is located on Host Site from an SharePoint hosted app by using csom (javascript). I have added permission on Manifest file and chose the list but still getting ...
2
votes
1answer
260 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
611 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 ...
8
votes
2answers
20k 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() { ...
3
votes
1answer
4k views

How to add Client Web Parts (App Parts) to a page from JavaScript CSOM?

We're working on a custom way of adding and deleting Web Parts and App Parts to a page in SharePoint 2013. We have to use the new App way of developing and all code has to be using the JavaScript ...
2
votes
2answers
3k 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 ...
1
vote
0answers
97 views

COM BCS model programmatic creation methods

Following the source code found here: http://code.msdn.microsoft.com/office/Creating-SharePoint-2010-ad694d17 I've managed to create the Create, Update and Delete method, but only the Delete ...
0
votes
2answers
782 views

Import bulk data (over 5000 List Items) into SharePoint

I have an Microsoft Office 2010 AddIn which imports Data into SharePoint. The tool creates a Dictionary with over 5000 Values. Every Value is a C#-Class with Data and represents a SharePoint List ...
1
vote
1answer
163 views

Nested ExecuteOrDelayUntilScriptLoaded

Has someone worked with nested ExecuteOrDelayUntilScriptLoaded? How/where should i notify the external one that the internal has finished (the internal ExecuteOrDelayUntilScriptLoaded has a ...
1
vote
1answer
2k views

Getting TermSet and Terms from Microsoft.Sharepoint.Client.Field

I'm having a hard time trying fo figure this one out. I can only use Microsoft.Sharepoint.Client for this. I'am working with Sharepoint 2013. I need to list all Fields (Metadata) For a certain ...
5
votes
4answers
7k views

Query SP2013 Managed metadata term store

I was wondering if it is possible to query the Term Store via the REST API or Javascript Client Object Model in SP2013. I can't quite seem to work out the naming scheme for the REST API to discover ...
0
votes
1answer
271 views

Accessing my list field values via dot notation after json.stringifier

This just be so obvious but I it seems not. Below I stripped out some of the code for clarity var list = context.get_web().get_lists().getByTitle('SMenuLink') //usual code to open a list using ...