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
2 answers

access the SP2013 Site Settings->Master Page/Navigation settings etc using CSOM (client side object model)

I want to access the SharePoint 2013 Site Settings → Master Page/Navigation settings etc. using CSOM (Client-Side Object Model) from JavaScript or REST service or Webservice which I can call from Javascript. Can I get the pointer if such API/objects…
nks
  • 161
  • 8
-1
votes
0 answers

File.StartUpload - uploads empty file

Trying to test upload file using File.StartUpload but end up uploading empty file. Every time a file is created with the expected file size, but no data is on the file. No exception or errors thrown, but file is empty. Code sample
Pavithra
  • 1
  • 1
-1
votes
0 answers

"Object reference not set to an instance of an object on server. The object is associated with property File" in SharePoint CSOM

I'm starting to use SharePoint CSOM, and running into a strange issue with downloading Files from my sites. Initially it seemed that as long as I confirmed a ListItem was indeed a file, and converted it to one, I'd be able to start treating it that…
-1
votes
1 answer

An unhandled exception of type system.net.webException occured in microsoft.sharepoint.client.dll

click here to see the photo I am using visual studio 2015......I need to connect to sharepoint through visual stuido. I added microsoft sharepoint online csom reference in vs 2015 but i unable to execute the code due to error.....
-1
votes
1 answer

Why is the collection initialized for one site but not the other assuming the correct permissions?

I am simply trying to connect to a different SharePoint site. This code works perfectly with a specific site but when using a different site with the correct permissions to the site and site list, I receive the following error: format-default: The…
user2101463
  • 343
  • 1
  • 4
  • 14
-1
votes
1 answer

Rules for the list name used with ListData.svc in sharepoint 2010

I want to fetch contents of sharepoint 2010 list through rest API. But name of my lists are really wired (They contain all sorts of special characters like: "," , "?" , "-" , "/" , "(" etc) and i can't change them. Example : 1) Claim Reminder, GT …
saumya bhargava
  • 105
  • 1
  • 1
  • 9
-1
votes
1 answer

Set Default Content Type Using CSOM Not Working

I have created new content type in CSOM, i need to set the newly created content type as default content type for the custom created sharepoint list. I am using below code. List aeList = ctx.Web.Lists.GetByTitle("Project Definition"); var…
Surendra Mourya
  • 593
  • 3
  • 8
  • 29
-1
votes
2 answers

How to create a page using CSOM Javascript in sharepoint..?

I would like to create a page using csom javascript code in sharepoint site with in the 'Page' library. The scenario is like, The javascript csom code creats page with all attributes and page data content in the 'Pages' library of the site. Please…
NaveenGNK
  • 93
  • 3
  • 12
-1
votes
1 answer

PnP — Add a claim value to a SP Group using PnP powershell

I was hoping to find an example where i could add a particular custom claim value to a SP group using PnP PowerShell. Basically do what is done below using PnP PowerShell $ClaimValue = $_.ClaimValue if ($_.ClaimType -eq $ClaimTypeSchema.GroupSID) { …
-1
votes
1 answer

I want to upload all the data of the local folder to the "General" folder of Sharepoint online

Please teach me. I am a beginner. I want to upload all the data of the local folder to the "General" folder of Sharepoint online(Folder A/files, Folder A/Folder B/Folder C/files etc.). This code is Four arguments error. $SubFolder =…
-1
votes
1 answer

What is the JSOM equivalent of CSOM From, Where, and Select?

I am "translating," some code from CSOM/C# to JSOM and got to a statement that is a bit unfamiliar to me. I would like to avoid mixing the CSOM and JSOM if possible the statement is as follows: var def = from defs in publishedWorkflowDefinitions …
-1
votes
1 answer

How to Get all the users from a share point Groups in a site.?

I have been trying to get all the users from the SP site. I have the code working for getting the groups adn group names but am getting an exception when I try to access the users from the groups. I initialized all the components before I used it…
-1
votes
2 answers

Find "Everyone" permission group in SharePoint Online collection using CSOM

I am trying to use CSOM to audit certain SPOL site collections and find which groups and sites have the "Everyone" permission group in use. Does anyone know if this is possible?
ItsBradMorgan
  • 86
  • 2
  • 7
-1
votes
2 answers

upload image to sharepoint generic list using csom C#

How I can upload image to a SharePoint List "custom List" not library using CSOM C#? Here is what I have tried so far: FieldUrlValue url = new FieldUrlValue(); url.Url = FileUpload.PostedFile.FileName; url.Description = "Your description here";…
zzzz
  • 1
  • 4
-1
votes
1 answer

SharePoint CSOM cannot initialize ServerRelativePath

Good day all, I'm working with c# and the SharePoint CSOM for SharePoint Online. My code works with files in a specific library where I loop through a collection of File object: foreach (Microsoft.SharePoint.Client.File xFile in…
1 2 3
62
63