Questions tagged [csom]

CSOM (Client Side Object Model) is a web services-based API of SharePoint allowing easy remote access to data and SharePoint's functions.

CSOM, which stands for Client-Side Object Model, is a web services-based API of SharePoint. It allows access to SharePoint data and features from remote clients. CSOM was introduced in SharePoint 2010 and greatly enhanced in SharePoint 2013.

Both JavaScript and .NET bindings to CSOM exist. Software leveraging CSOM can integrate with SharePoint without the need to run within a SharePoint farm.

In SharePoint 2013 CSOM is the only API available to software built using the new Apps for SharePoint architecture. Apps for SharePoint run side-by-side, typically in the cloud, and integrate with both cloud and on-premise SharePoint farms.

Corresponding MSDN documentation is located here, with separate JavaScript and .NET API references. The web services-based API underlying CSOM has been documented as part of Microsoft's Open Specifications initiative.

941 questions
3
votes
1 answer

Is there any efficient method to query unique permission list items under the list (both graph or CSOM)?

We have business request to scan the user permission across multiple OneDrive for Business, and we are asking if there is any efficient method to query unique permission list items under the list without one-by-one query list item? If yes, this will…
Long
  • 43
  • 4
3
votes
0 answers

SharePoint Office365 Signin issue using CSOM

I am trying to connect and retrieve a List from my Office365 sharepoint portal through CSOM. In document.ready function of jquery I am calling an ajax call. I am using the below code and its working fine. [WebMethod] public static List
3
votes
1 answer

Authentication Succeeds when Debugging but Fails on Azure App Service

I am simply getting some users from SharePoint using CSOM using the below method. This has always worked for me and I've had no issues. All of a sudden, when I try calling this method today it fails with this error The sign-in name or password does…
Bassie
  • 9,529
  • 8
  • 68
  • 159
3
votes
1 answer

Sharepoint UploadFile 'Specified argument was out of range of valid values'

I'm trying to duplicate a file from one library to another within a Remote Event Receiver. When reaching the UploadFile-function, I get the following error: Specified argument was out of the range of valid values. Parameter name:…
Jordumus
  • 2,763
  • 2
  • 21
  • 38
3
votes
2 answers

sharepoint list caml query issue because it exceeds threshold limit

I am getting below error while querying SharePoint list,list has 5005 records and threshold limit is 5000. I have a sharepoint list having different folders and i am using CAML query with RecursiveAll to get records from all folders. I am getting…
F11
  • 3,703
  • 12
  • 49
  • 83
3
votes
1 answer

Value does not fall within the expected range - Exception for SharePoint Lookup Field

I am trying to copy data from one list to other list (both lists are on different sites) along with lookup columns. But, I am getting an error for lookup field as: Value does not fall within the expected range Code works and data gets copied for…
Pratik
  • 31
  • 1
  • 4
3
votes
1 answer

How to get project cost value in microsoft project 2013 PWA csom

I want to display information from Project Server in Gridview. but i can't get the value of the Project cost. Here is my approach to get the project cost value projContext = new ProjectContext(pwaPath) projContext.Credentials = new…
3
votes
1 answer

"Version conflict." error while trying to update list item via CSOM

I am getting a "Version conflict" error while trying to update a list item via CSOM. Code: String webUrl = ; String path = row["Path"].ToString(); String listTitle = null; …
Subhadip Dhar
  • 31
  • 1
  • 5
3
votes
0 answers

Office 365 CSOM set multi user field throwing Unknown Error

var Users = []; var selectedUsers = [1,2,3,4]//Existing user IDs for (var i in selectedUsers) { var lkupUser = new SP.FieldLookupValue(); lkupUser.set_lookupId(selectedUsers[i]); Users.push(lkupUser); } …
3
votes
2 answers

Sharepoint CSOM - how to filter out system/default document libraries?

I need to get all documents from Sharepoint site. I start with getting all the document libraries: private IEnumerable GetAllDocumentLibraries(ClientContext context) { var lists = context.LoadQuery(context.Web.Lists.Where(list =>…
Filip
  • 1,824
  • 4
  • 18
  • 37
3
votes
4 answers

CSOMUnknownUser error on working with draft project in Project Server 2013 CSOM

I'm trying to work with Project Server 2013 CSOM and I can authenticate, read any information, create new project and so, but I have problem with draft projects, in any way when I want to execute query on draft project I receive error message…
Mehdi
  • 1,731
  • 1
  • 18
  • 33
3
votes
1 answer

IE Error DOM7009: Unable to decode image at URL

I am working on SharePoint 2013 apps . In my app parts i have used few images. All the images are showing up properly in Mozilla and chrome but few of the images are not showing up in IE, i can only see the broken image. Suppose i have my image at…
user5846985
3
votes
2 answers

How to provision Publishing Pages in SharePoint Online using PnP Provisioning Engine?

I am using PnP Provisioning Engine for remote provisioning of one site collection to another site collection in SharePoint Online as shown in this video:…
Hemant Kabra
  • 870
  • 9
  • 29
3
votes
1 answer

How to change values of ListItems recursively in Sharepoint 2013 using CSOM

My Situation Hi, my client has a Sharepoint Server 2013 on Premise. He wants to write metadata on multiple files. More specifically he wants to choose a folder and then the application should write the same value in a column for every file/folder in…
Simon Balling
  • 481
  • 1
  • 5
  • 14
3
votes
2 answers

Performance will be better using CSOM or REST API to retrieve data from 4 lists simultaneously.?

I am developing Sharepoint hosted app, and there is a situation where i need to get the data from 4 lists simultaneously, then use it later on. I am able to do it using CSOM. But performance wise what will be better CSOM or REST API. If rest API is…
Dilip Kumar Yadav
  • 565
  • 1
  • 7
  • 27