0
votes
1answer
21 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 ...
1
vote
2answers
56 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 ...
1
vote
1answer
32 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
32 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 ...
1
vote
3answers
136 views

how to use user profile with object model

how to use user profile with client object model.? I need to fetch some properties in object model. code example will be helpful.
1
vote
2answers
138 views

Calendar View not properly displaying in WebPart

I'm trying to have my events list display as a calendar view in a Sharepoint-hosted app written using JavaScript and the Client Side Object Model. Here's the code I'm using. From Default.aspx: ...
1
vote
0answers
16 views

Is it possible to query the status of a service application using the client object model?

My goal is to query the statuses of services and service applications from a remote machine. I don't want to actually interact with the services, all I need is the "Started"/"Stopped" status you get ...
0
votes
1answer
50 views

How to validate if a SharePoint group already has permission on the site using Client Object Model?

I'd like to check if a certain group already has permission on the site using the client object model. I couldn't find any good example for that.
0
votes
0answers
17 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 ...
0
votes
1answer
189 views

Taxonomy control in SharePoint hosted app

I am creating an SharePoint hosted app. In that I have to use Managed MataData from my list. In this I am getting the Metadata from my list column to my Taxonomy control. I have find some post but I ...
2
votes
1answer
839 views

client side people picker validation

I've built my people picker using the normal method for client side: // Render and initialize the client-side People Picker function initializePeoplePicker(peoplePickerElementId) { // Create a ...
0
votes
1answer
314 views

How to change 'Modified By' column value when a new file is uploaded in SharePoint 2013 using Client Object Model?

I want to change 'Modified By' column value of a file that is being uploaded using Client Object Model in SharePoint 2013. The problem is that the version of the file is changing. Kindly help me. The ...
0
votes
1answer
179 views

Jquery show loading progress [closed]

Good day, I have a page with several javascript pages that get loaded. How can I check that all the JS files have been loaded? I tried the below with just alert boxes. $(onPageLoad); function ...
2
votes
2answers
268 views

Looping retrieved Items throws an InvalidCastException

I have some very simple code using the client object model to retrieve a list and all items from that list from a SharePoint 2013 Online site. When the ExecuteQuery() fires, I use Fiddler to view the ...
1
vote
1answer
1k 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 ...
0
votes
1answer
168 views

Display Form Text Inaccessible via JS

I'm overriding the Display Form of a list as per Mark Rackley's blog post: http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=47 For this particular list, I need to parse a text field, split ...
0
votes
1answer
94 views

Use REST or XSL to get a Table with totals

I have a list with items that contains several columns like: Year Month HourCategory1 HourCategory2 HourCategory3 Now I want to create a table that shows only totals of the hour categories: ...
0
votes
1answer
799 views

Using REST API to get Site Groups in SP 2013

I'm trying to use the REST API in SharePoint 2013 to get the site groups. I've been using this link for a little help... http://msdn.microsoft.com/en-us/library/jj245927.aspx It's to do it with the ...
2
votes
0answers
124 views

Change content type order via Javascript/ECMAscript

In my SharePoint-hosted app, I use javascript to apply a content type called "Order" to a list in my app. When users click "new item" to upload a document, I want that document to derive from my new ...
1
vote
2answers
940 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
1answer
448 views

How to utilize audience targeting with javascript?

Im creating a SharePoint-hosted app (restricted to use client side code only), and I want to retrieve documents from a library. Each document have a Target audience field. I want to, in javascript: ...
0
votes
1answer
116 views

What are the big enhancements in the 2013 SharePoint REST/Client API? [closed]

The MSDN mentions there are some enhancements in the REST/Client API, but the things it lists seem to already be in the 2010 APIs. Can someone please elaborate on the new features that are NEW In ...
0
votes
1answer
3k views

How to use SharePoint 2013 search keyword query refiners and refinementfilters?

I m working on requirement where I need to write a client side managed code in C# to pull search results based on the free text query and then should be able to refine the result based on the Keyword ...
0
votes
2answers
115 views

Can't read Start or End Times with Client Object Model from Calendar in SP 2013

I have some experience using the SharePoint Client Object Model to retrieve text fields and URLs/images from lists in SP 2013. I'm currently trying to do something similar with a calendar. I have been ...
1
vote
1answer
788 views

SharePoint 2013 - How to add an action to a Callout

I want to add a custom action on the default Callout for Document Libraries. The only instructions I could find on this subject show how to override the entire FooterTemplate on an existing Callout ...
0
votes
1answer
76 views

Client Object Model, wait for a list to load

I'm writing some javascript that modifies a SharePoint list, I've added it to the page using JSLink. Sometimes the script fails because the list appears not to have fully loaded. If I add an alert ...
3
votes
5answers
3k views

SP.ClientContext is always “undefined” in JSLink functions

I'm trying to execute CSOM functions as part of a JSLink extension to override rendering of a Lookup Field. Problem is every time I try to access SP.ClientContext it returns as undefined I have ...
0
votes
0answers
198 views

Modify list item field using javascript?

I'm trying to implement some Move Up and Move Down hyperlinks in a list so that, for example, pressing move up moves the item one place up in the list. I have tried giving the list an order column ...
3
votes
1answer
499 views

How to make a request to SharePoint 2013 REST service from code that runs inside SharePoint server (NOT from App/External code)

I have a page hosted in _layouts in SharePoint 2013. I want to make REST call to SharePoint REST api from this page using current user credentials. I don't want to do it from client-side (jquery etc) ...
0
votes
1answer
80 views

Retrieve notifications with JavaScript

I want to incorporate social feed into my SharePoint webpart. I followed this tutorial: Code example: Retrieve social feeds by using the SharePoint 2013 JavaScript object model. Even if I used ...
0
votes
1answer
529 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
245 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 ...
3
votes
1answer
269 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 ...
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 ...
0
votes
1answer
79 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 ...
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 ...
0
votes
1answer
193 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 ...
2
votes
2answers
2k 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 ...
1
vote
0answers
342 views

Is it possible to programmatically add page items to Enterprise Wiki using CSOM or REST?

Like a lot of us I'm green when it comes to SharePoint development. I've been tasked with moving MediaWiki content over to a SharePoint Enterprise wiki. At this time I do not have access to the server ...
0
votes
1answer
784 views

SharePoint 2013 App Part : Dynamically set values for the tool part panel controls on serverside

How can I dynamically fill a dropdown list in a Tool Part panel of a SharePoint 2013 app part? What I want to achieve: User checks a checkbox Dropdown appears The list items in this dropdown are ...
1
vote
0answers
44 views

How to create object of type SP.ListItemFormUpdateValue

How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side? If this is not posible, how can i read a value in a ...
1
vote
2answers
918 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
2answers
299 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 - ...
2
votes
2answers
860 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 ...
0
votes
2answers
529 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 ...
1
vote
0answers
873 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 ...
2
votes
2answers
554 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
1answer
82 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
872 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
630 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 ...