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

2
votes
1answer
84 views

Query list for all list items and their attachments using CSOM

I've used the following code to retrieve the list items on my SP site. The following code will return "Value does not fall within the expected range" if I try to get the AttachmentFiles: ...
4
votes
1answer
34 views

Can we unlock a ShortTerm lock via CSOM for SP2013

We are using SP2013 with OWA installed. Users often complain about a file stored in SharePiont being locked by another user not in office. Error is "The file "xxxx" is locked for exclusive use by ...
4
votes
1answer
342 views

CSOM Search API does not return all the results

I am having a problem with the code below. It is not returning all the rows/items which are found in different lists. The total number of items is 28, but the code below is returning 19. I have set ...
3
votes
3answers
121 views

Query multiple lists using javascript/CSOM

I'm about to query multiple lists using JavaScript (JSOM, SharePoint 2010). It's working when querying one list in a time, but that's annoying when I'm having lots of lists. Working example: ...
2
votes
1answer
222 views

How To Create a Picture Library in SharePoint Online(office 365) Using CSOM-JavaScript?

Currently I have created SharePoint Hosted App (Picture Slider) using Napa Office 365 Development tool. So far, I have created picture Library Manually, and now trying to create Picture Library using ...
1
vote
2answers
48 views

Displaying All sites a User Has access to, Across an Entire Web Application!

I have had this issue for a while, and been asking piece-meal questions for a few weeks. I finally created a full solution that worked. And wanted to provide the full solution, that was both EFFICIENT ...
1
vote
1answer
373 views

Modifying Global Navigation Settings in SharePoint Online

I am working on a PowerShell script to provision a site collection with a predefined hierarchy. Since the PowerShell breadth is so limited, most of this is done via functions that are CSOM code. As ...
0
votes
2answers
589 views

List files in a specific folder in a document library

I there anyway to output the files of a specific folder in a document library? Listing them will be like foreach $file in $folder.files { write-host $file.name } But how do I tell it to look ...
1
vote
1answer
17 views

EventListener for List changes in Sharepoint Hosted app

I'm developing a sharepoint hosted Add-in, which should react to a change of a list field of a list in the hostweb. I need some kind of EventListener for a list field. For example: List field Gets ...
1
vote
1answer
104 views

Using csom search api, how can I search lists based on content types?

I have multiple subsites and each subsite has a list called "Articles". Each has two content types. "News Articles" and "Success Stories". I would like to search based on the content types above using ...
1
vote
1answer
288 views

breakroleinheritance for a folder powershell csom

I am trying to break permission inheritance for certain folders in my document library in office 365. However when $folder.BreakRoleInheritance($false) is executed I get an error: Method ...
0
votes
0answers
23 views

Getting 400 bad request error while doing CSOM GetListItems

I am using the below mentioned code to get data from a list var Totalsum=0; var attr="ows_columninternalname"; function sum1(CamlQuery) { var soapEnv = "<soapenv:Envelope ...
0
votes
1answer
92 views

SPOnline - Install and *Trust* an App using CSOM

I have a SharePoint Hosted App that I want to deploy to a SPOnline site and trust the App programmatically using CSOM. Idea is to mimic manual installation completely. I tried the below threads and ...
0
votes
0answers
62 views

CSOM issue: workaround needed for SystemUpdate & DisableFiringEvents to be able to save current Version to a textfield

To be able to include the current version in Word, I need to have a custom Text field that contains the current version (calculated & Version fields are not available in QuickParts). * The new ...
0
votes
1answer
651 views

Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.1.3912.1204,

Previously I was using Microsoft.SharePoint.Client.dll of version 15.0 in my application. I just removed that reference and added new reference of assembly of version 16.1. But now it is giving error: ...
0
votes
0answers
62 views

Shared files not being displayed in “Shared with me” using CSOM

I'm using the following code to share items within OneDrive. private static void Main(string[] args) { using (var ctx = new ...