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

Delete a custom sealed site column in sharepoint online

There are some site columns create in our Office365 sharepoint online site which were created using the client side object model (CSOM) with the "Sealed" property set to True. I now want to delete these columns, but I am unable to do so using the…
arduk
  • 1
  • 2
0
votes
1 answer

Unable to obtain managed metadata field using CSOM. Field not initialized error

I am not able to obtain the newly added managed metadata field by internal name using CSOM. However, the field the related hidden text field is available with the value. The following statement throws…
0
votes
1 answer

SharePoint 'my membership' webpart counters in community site

in a SharePoint 2013 community site, there are a bunch of counters under the members list. Unfortunately these fields are readonly. When we programmatically import discussions (via managed API CSOM), the counters are updated. Before importing, we…
Verthosa
  • 1,671
  • 1
  • 15
  • 37
0
votes
1 answer

Personalizing Add In Parts with javascript in Sharepoint 2013

We have a customer that wishes to make it easier for the user to customize their webpart pages. We are therefor using javascript to build a simple grid where users can add, remove and move Add In Parts (both webparts and AppParts and both OOTB and…
0
votes
1 answer

Get SharePoint ClientContext via CSOM/JSOM in SharePoint Online Add-in

I have looked everywhere for a solution to this issue and have come up short. If someone could tell me the trick I would be greatful. Scope: I am building a SharePoint add-in for SharePoint Online. In the appweb I am trying to use a web part to get…
0
votes
1 answer

Cannot Update SharePoint Publishing Page Image

I am trying to update publishing Page image url but somehow after execute query command. its value saved as null ClientContext targetContext = new ClientContext ("REAL URL"); Microsoft.SharePoint.Client.File targetFile =…
0
votes
1 answer

Returning Lists in SharePoint 2013 CSOM

I'm working with SharePoint 2013 and trying to return all the lists that exist within a Site URL. I've tried the code below, but it returns an initialization error. How can I properly return these lists? foreach (List li in…
whobetter
  • 65
  • 6
0
votes
1 answer

Need help getting LookupList values using CSOM with a CAML Query

SHAREPOINT 2010 users I have a SharePoint List full of items, and one of the field is Topics. I would like to be able to return those values. If I use the actual field Title, I will get [Object Object] as opposed to the object value. I am wondering…
0
votes
1 answer

How to use Web.GetFileById

I've found the following link on msdn and I've been struggeling to get it running. I had to use Microsoft.SharePoint.Client.dll from 16 hive (I'm using SharePoint 2013 server) inside Visual Studio to get no compile error. After running the following…
Andreas
  • 294
  • 1
  • 14
0
votes
1 answer

Performance Optimization when loading term sets

I have a problem with retrieving the terms of a termset in my program (which is written in VB). The termset has about 300 terms, and all of them have about 10 to 70 subterms. I wanted to integrate all the terms in a form, so I used a "Treeview" for…
Aquen
  • 7
  • 1
  • 4
0
votes
1 answer

Sharepoint 2010 CSOM Object - List Column Type NOTE

In the Microsoft.Sharepoint.Client CSOM library in VB.NET, is there a object or set of objects that will allow me to access properties/values and methods on a SharePoint list column of type Note? I have dug around, but cannot find any documentation…
Eric
  • 505
  • 5
  • 22
0
votes
1 answer

no lcid in tenant.createsite

We can use the create site method of the Tenant class to create a new site collection in CSOM. This takes SiteCreationProperties object as parameter. we can specify the LCID here but this is optional if you specify no lcid in tenant.createsite in…
Sohail Sayed
  • 31
  • 1
  • 3
0
votes
2 answers

How to get Zone ID from app part or web part with LimitedWebPartManager

When fetching a page in CSOM from a SharePoint add-in, how is it possible to fetch the ZoneId of a certain web part? With the "SPLimitedWebPartManager" you have a method "GetZoneID"…
Mathieu
  • 367
  • 3
  • 11
0
votes
1 answer

Can I upload a 2GB or larger file to SharePoint Online?

I'm trying to write a C# application that can be executed automatically to upload a 2 GB .zip file to a Office365 SharePoint Online site. However, I can't seem to get any approach I try to work. After many fruitless attempts, I've been diving into…
Joe L
  • 25
  • 1
  • 5
0
votes
1 answer

How can I discover the right internal names to use with a SPList using CSOM

I'm loading a SharePoint list using the client service object model (SharePoint 2013 on-premise). I'm using the following code: private void buttonRefreshOrders_Click(object sender, RoutedEventArgs e) { using (var ctx = new…
Michael A
  • 9,480
  • 22
  • 70
  • 114