The client-side object model (CSOM) provides access to a subset of the SharePoint Foundation server object model, including core objects such as site collections, sites, lists, and list items and allows you to program against these from client side applications.

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

Hosting a SharePoint Page in a minimalist manner

I have a simple SharePoint CSOM page that is used to pull the Current user and their Email. I'm hosting this page in a dedicated Site Collection which seems like overkill. It's essentially a redirect ...
0
votes
0answers
9 views

programmatically disable Offline Client Availability

I'm making a provider hosted add-in for SharePoint Online that will create sub-sites for a customers different projects. The customer don't want the offline sync to be activated and in a perfect ...
1
vote
1answer
137 views
+100

Create ListView with InplaceSearch on TeamSite from XML

TL;DR Version Cant create a webpart with searchbox (InplaceSearchEnabled) from XML and even cant modify it afterwards via SSOM to make it work. Setting the value over the UI works fine. Problem ...
0
votes
1answer
17 views

How to use asp.net controls in .JS file for SharePoint Development

I am working on JS file from SharePoint designer and using HTML controls inside my JS. I am willing to replace HTML Controls with asp.net controls for the user interaction. Can any one help me in ...
0
votes
1answer
17 views

Loading list items with CSOM ClientContext.Load: performance with LINQ

We have code like this: List list = clientContext.Web.Lists.GetByTitle("TestLib"); ListItemCollection items = list.GetItems(query); clientContext.Load(items, its => ...
0
votes
0answers
18 views

check group permission with javascript

I am developing a sharepoint add-in for Office 365 and I need to check groups permissions for my site. Has anyone some ideas?
0
votes
1answer
44 views

web.getList() retrives all lists. Instead of this I want only user created list

I am making Sharepoint hosted app and I am trying to get all lists appContextSite = new SP.AppContextSite(context, hostweburl); this.web = appContextSite.get_web(); //Code to get the cross domain ...
0
votes
1answer
639 views

Get sub folder from document library using SharePoint.Client.dll

I need to get the folder named Arshad from SharePoint Document library folder. The path of the sub folder is : http://url/Shared Documents/Arshad I need to access the folder using SharePoint ...
2
votes
0answers
10 views

How to debug the sharepoint web proxy

I am using the sharepoint web proxy to call the AAD token endpoint web service in Azure. When I do the call, the response calls my error callback with a jqXHR object that contains the following: { ...
0
votes
1answer
26 views

Attaching a file to a list item using CSOM

I'm attempting to use a console application to attach a file to a list item I have created in code. Here's what I have: var attachmentInfo = new AttachmentCreationInformation(); // ...
0
votes
0answers
62 views

How to create a project with required custom fields via .NET CSOM?

I have Project Server 2013 on-premises deployed. Projects are configured to have custom properties some of them are required. Could you please recommend me a way of how to create a project with ...
1
vote
0answers
7 views

Returning a SharePoint 2013 termset in a tree structure using CSOM

Is there's a way to Return a SharePoint 2013 termset in a tree structure using CSOM ?
1
vote
0answers
11 views

Adding ListItem via CSOM trigger both Create and Update Workflows

I'm using CSOM to create listitems in a custom list on SharePoint 2013. On the list I have 2 workflows, one that executes on item create and one that executes on item change. Or "Start workflow ...
1
vote
2answers
44 views

Select 5 items with caml beginning at the fifth row

I can get the 5 first items of a list with caml : var collListItemToBeUpdated = ""; var listItemToBeUpdated = ""; var enumerator; function getItemsToBeUpdated2() //this function ...
1
vote
1answer
25 views

CSOM - Check if one root site collection

I have a situation in which I'd like to know whether the user is currently on their root site collection or not. I tried the following: var siteRelativeUrl = ctx.Web.ServerRelativeUrl; var isRoot = ...
4
votes
3answers
3k views

Send Email from CSOM

Is it possible to send an Email from an Autohosted Sharepoint 2013 app from CSOM code (C#) with an attachment? I have the following code: EmailProperties properties = new EmailProperties(); ...
0
votes
1answer
25 views

Sharepoint 2013 Client Side Rich Text Editor saving troubles

I'm trying to get a rich text field from the DOM and save it via javascript and its Sharepoint Client Context.I have an XSL form that creates a Sharepoint Form Field with a structure that's something ...
0
votes
0answers
13 views

How do I get the ParentItemID? (C# Csom)

I've a problem about the ParentItemID in the discussion board. I try to get it in order to do a hierarchy between the responses of a subject. I just access the title and the body of the response, and ...
3
votes
1answer
75 views

Send Emails via SharePoint CSOM

I am trying to write a mailsender in C# for SharePoint but each time I start it I get this error message that tells me that it doesn't have permission. I had tried to give it permission at ...
0
votes
0answers
19 views

Getting “Cannot complete this action. Please try again”

Folks: I have created an console application to upload data from a Excel spreadsheet into an custom SharePoint. Everything works perfectly until I try to save the new list item. ...
-1
votes
1answer
16 views

Read Term store in SP 2013 and build custom tree

I try to read Term store and build custom tree structure using CSOM in sharepoint 2013. i can able to get the terms from term set var terms = termSet.GetAllTerms(); ...
0
votes
1answer
8 views

Dynamically build url to documentset homepage

I have some methods using CSOM that are being called form an external program. In one of these methods I check if a document set exists on a certain location, and if it does I want to return the url ...
1
vote
1answer
53 views

CAML query format filter in DateTime column

I need to get the list item created on a particular date. The below caml query doesn't seem to work. It always retuns 0 query.ViewXml = @"<View><Query><Where><Eq><FieldRef ...
2
votes
1answer
757 views

Error handling ClientContext CSOM SharePoint Online

What is the best way to handle errors for ClientContext is there a reference material for errors thrown. When using the HTTPWebRequest you can check the status ie 403, 500. is there anything similar ...
0
votes
0answers
11 views

SharePoint CSOM Change group permissions

I need to build a simple application that will take an item in the list and change permissions on the existing groups from "contribute" to "read". I was able to do this for users, but I am struggling ...
0
votes
1answer
45 views

SharePoint Online list view threshold

I need to access a list with 40,000 items and populate that data into a csv. How can I do this using caml?
0
votes
1answer
22 views

Navigation nodes - Same code gives different results

I am recreating the left navigation bar with code in vb.Net. The code runs fine in my test environment and produces the desired results, but in production it does only almost perfect job. The last ...
1
vote
2answers
27 views

Add Run with elevated privileges in JSOM [duplicate]

I writing JSOM code to get interact with sharepoint 2013 lists and document libraries.Now I have requirement to allow anonymous users to insert the items for SharePoint Lists list. Can any one help ...
0
votes
0answers
44 views

Remove User from a Site through CSOM

I have a CSOM Script (Below) that I am using to delete a user from a SharePoint Group. But in some of the site the users are added directly to the site. Can you please let me know, how I can remove ...
0
votes
1answer
33 views

Add Sharepoint Group as Group Owner

I am trying to add a SharePoint Group as a Group Owner to another SharePoint Group using CSOM but unfortunately I am not successful. Please find my script below. Can someone please suggest where I ...
0
votes
1answer
22 views

Jquery to display formatted value in content editor

I'm completely new to jquery and by now I'm not able to use it. Can anyone help to write a piece of code, which will display single item (given ID) from the list 'CounterList', column 'Counter' to a ...
1
vote
1answer
1k views

Load all fields for a specific ListItem using CSOM

I want to load all FieldValues for a specific ListItem ForExample public ListItem GetItemById(List SPList, int id, string[] fieldNames) { using (Ctx) { ...
4
votes
4answers
893 views

SP O365 upload big file via CSOM

Hi I try to upload large files (900 MB) to SP Online (actually the OneDrive Business) but seems to follow SP style. Tried this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
2
votes
2answers
96 views

CSOM - Get root site collection from

I'm trying to evaluate the position of users, defining whether they come from a site (test.sharepoint.com/sites/site1) or if they reside at the root site collection (test.sharepoint.com). Does CSOM ...
1
vote
2answers
330 views

Setting List Metadata Navigation settings using CSOM

How would I use the SharePoint CSOM to configure the Metadata navigation Settings for the documents list? This is for an online SharePoint instance and I haven't been able to find anything online for ...
0
votes
0answers
13 views

Sharepoint-Hosted Add-in: Intercept save button on Project Details Page. (PWA 2013)

I'm trying to create a Client web Part (Sharepoint-hosted Add-in) and its objective is to be a kind of project details page. I want to do this because, I need store some data from a external system ...
1
vote
0answers
14 views

Get Video Source from variable

I am currently using SharePoint to query a pages library for a video, the aim is to then display this video in an iframe, I am currently using csom to get the video source from a Page, however this ...
0
votes
1answer
24 views

SharePoint provider-hosted app filter document library CSOM

I have the following code that gets files from a document library. Works great for getting all the files. Now, however, I want to filter the files using the "title" param before passing it back to my ...
0
votes
1answer
22 views

Using CSOM in SharePoint Online Hosted App

I've recently been playing with apps in SharePoint Online. I've wrote a few basic CRUD apps that use JSOM and the REST APIs. These approaches are relatively well documented online, so finding ...
1
vote
1answer
38 views

Files move from one library to another library using jsom

Below code is working fine, but inside for-loop if I put alert,then moving multiple file but if I remove, only one file moving. I do not want any alert/pop up. Please suggest. ...
3
votes
0answers
70 views

Logged as another user

UPDATE : I've totally disabled the Distributed Cache, however, the problem is still there. For the record, I've applied CU7 for AppFabric as well as SharePoint 2013 Server March '13 CU. No luck so ...
1
vote
2answers
49 views

Fix 401 Unauthorized Exception uploading file to SharePoint 2010

I have a WCF service hosted in IIS on Domain 1. This service is accepting a request to upload a file, and then uploading the file to a SharePoint 2010 Server on Domain 2, using the client object ...
1
vote
1answer
760 views

Getting the User Profile Picture URL by E-Mail via CSOM

I've seen many questions about how to achieve the User Profile Picture URL via the CSOM (Client-Side-Object-Model) API. However none of the solutions worked or they required the Account Name of the ...
1
vote
2answers
51 views

Hide a specific list from 'View All Site Content' using JSOM/CSOM?

I see you can make a list hidden by using SharePoint Designer (http://www.sharepointdiary.com/2013/06/how-to-hide-list-or-library-in-sharepoint.html) which I am not interested in. It is okay if the ...
1
vote
1answer
60 views

SPA using c# and angular js code in SharePoint provider hosted app

We have built an app using provider hosted SharePoint app model with angularjs. Now we are planning to use the app on a SharePoint site which is integrated to ADFS. When I google on how to use ADFS ...
0
votes
1answer
52 views

Get person or group field from list then query user profile

I am currently working on SharePoint 2013 on premise and I am trying to use JavaScript to get the latest 3 "new starters" from a SharePoint list then return information about them such as the ...
3
votes
3answers
66 views

SharePoint DateTime issue when date is saved using CSOM

The timezone set in SharePoint Online is EST and when it is being saved to SharePoint using CSOM/ECMA script from location with UTC +5:30 timezone the date is reduced. Everytime we edit the time is ...
1
vote
2answers
42 views

Moving to client site development in SharePoint 2013

I am new to SP as a developer but experienced as SharePoint users. I am moving to SP development side ( I have depth .NET programming knowledge). As a first assignment I am in need to convert a ...
2
votes
2answers
46 views

Disabling tabular view

I have a bunch of views to create for a couple libraries that are all basically the same except for some filter values. I can create them in PowerShell using ViewCreationInformation. After a bit of ...
0
votes
0answers
20 views

Get Document Views from Client Side

We have a SharePoint 2013 intranet site that contains a Document List. There are .xlsx documents and .rdl documents. I want to know which users viewed which documents. I want to get this information ...