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
0
votes
1 answer

TSQL to CAML Where value IN OTHER 2010 SP list

After much research, I can't seem to find a CAML equivalent of SELECT i.Name, i.SubmitDate FROM issues i WHERE i.ServerName IN ( SELECT s.Name FROM servers s WHERE s.Active = true ) Or SELECT i.Name, i.SubmitDate FROM issues i INNER…
Eric
  • 505
  • 5
  • 22
0
votes
1 answer

How to Check if a Sharepoint user is in a security group no matter if this is in a AD group CSOM

I have a SharePoint hosted app and I need to check if the current user is in a SharePoint security group no matter if this is in an AD inside the group. The following code checks if the user is in the security group but only if they are explicitly…
Sebastián A
  • 880
  • 2
  • 7
  • 23
0
votes
1 answer

Sharepoint - Create view with grouping and list item hyperlink using Powershell CSOM

I am creating a view using powershell. Below is the XML file which contains the columns for the view and list name.
user2598808
  • 633
  • 5
  • 22
  • 40
0
votes
1 answer

Is there any client side API available (e.g. -CSOM or Rest) to capture version for a Document Set in SharePoint Online?

Is there any client side API available (e.g. -CSOM or Rest) to capture version for a document in SharePoint Online ?
Samik Roy
  • 9
  • 4
0
votes
1 answer

SharePoint Backup Tool for Custom Lists

I have a SharePoint 2013 document library with three custom lists. Once a day I would like to backup the custom lists as excel documents. Is there an inbuilt functionality in SharePoint 2013 which can be configured as a recurring task? Or should one…
Ranjith Venkatesh
  • 1,322
  • 3
  • 20
  • 57
0
votes
1 answer

Sharepoint external fields names

We already know how to get the internal field names in a SharePoint list. But I have been having to manually look at the list on the sharePoint site, and then compare it to a printed list of the internal field names, to figure out which external,…
Eliezer Miron
  • 388
  • 5
  • 18
0
votes
0 answers

Rename the Uploaded Document in document library using the CSOM

I uploaded the document in SharePoint document library using CSOM. Now I need to Rename the uploaded file using CSOM, here is my code Web web = context.Web; bool iscontinue = false; FileCreationInformation newFile = new…
0
votes
0 answers

Deleting and creating the Domain Group “Everyone” in Sharepoint 2013 using Powershell CSOM

With Powershell CSOM and SharePoint 2013, I am trying to reset the permission to the domain group "Everyone", with the name "c:0(.s|true". Therefore I want to delete and recreate it, so that all the permissions "Everyone" has gotten over time have…
0
votes
1 answer

Ribbon Command to read values

My javascript is not the best and was wondering if someone could help me out with this. Essentially I have a library with an integer column called PGCount, I want to be able to click this button and it adds to the value of the defined variable…
0
votes
1 answer

How to prevent fill in values when saving over CSOM to a choice field

I am writing some ETL code to move data between an external system and SharePoint Online. I am using the nuget package Microsoft.SharePointOnline.CSOM to communicate with SP in C#. I am using the following code to update my field values. …
VaultBoy14
  • 251
  • 1
  • 4
  • 13
0
votes
1 answer

CSOM Equivalent of allusers

Can anyone tell me if there is an Equivalent of allusers in sharepoint csom. I cant seem to find anything. Basically im creating a remote event receiver and im trying to replace the following piece of code with the CSOM…
Richard Banks
  • 2,946
  • 5
  • 34
  • 71
0
votes
2 answers

SharePoint SOM or CSOM?

I need to do the following in our existing SharePoint 2013 server: "Create a timed job that reviews rows in a list Send an email notification to a user based on logic Update the list Add/remove the users to an AD group " As per this article it…
Ranjith Venkatesh
  • 1,322
  • 3
  • 20
  • 57
0
votes
3 answers

Update Modified field in Office 365

Is there any way to update the Modified field in Office 365? I have checked both CSOM and Batch update methods. But it's failed. Could anybody help me to update this field.
user3256204
0
votes
1 answer

caml query to query for a file including inside a document set

I want to retrieve 1 column for 1 specific file using CSOM, these can be located anywhere, so in whatever folder kind of content type including document sets. So... I could check first, then... if the result = 0, then traverse folders and see if one…
edelwater
  • 2,650
  • 8
  • 39
  • 67
0
votes
1 answer

How can I check if a file is beeing edited (locked ?) using csom?

I am using sharepoint CSOM to download / upload file from a OneDriveBusiness account. Before downloading the file I need to check if the file is currently in use. File.CheckOutType is alway "None". I though using File.LockedByUser property, using…