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

Create list using C# CSOM in a subsite on Office SharePoint O365

We have a SharePoint 2013 Provider-Hosted App using C# CSOM that has been deployed to a Developer site under the root site. One of the requirements of our app is that it should be able to create lists in the site where the app is deployed and…
Ryan Shripat
  • 5,574
  • 6
  • 49
  • 77
0
votes
1 answer

Javascript Object Model On SharePoint 2013 Not Loading

I have a common error on JSOM SharePoint 2013. I have a function below function getTasks() { var context = new SP.ClientContext(appWebUrl); var web = context.get_web(); context.load(web); var splist =…
Can PERK
  • 590
  • 8
  • 24
0
votes
0 answers

Connect to Sharepoint 2013 from Windows Phone 8

I want to create a Windows Phone app for SharePoint2013. Here's my problem. When I call ExecuteQueryAsync I get a Exception with the Message "The remote server returned an error: NotFound." I already checked the URL, I can access it from the…
pimi
  • 36
  • 4
0
votes
1 answer

How to delete attachment from list item in sharepoint using client object model?

The AttachmentCollection object does not have any delete method. How can i do it?
Vikram Babu Nagineni
  • 3,411
  • 6
  • 25
  • 34
0
votes
1 answer

Create SharePoint variation labels using CSOM

Can anyone tell me how to create SharePoint 2013 variation labels using client-side object model (CSOM). I know it is possible using SSOM and Powershell.
0
votes
1 answer

Set / get viewmodel in localstorage if exist - knockout - javascript

I'm retrieving my global navigation with CSOM. But it takes some time to execute. What I want is to store the ViewModel in localstorage the first time I'm loading the page. I'm not having any problem retrieving the ViewModel but I need some help…
Plexus81
  • 1,221
  • 6
  • 23
  • 44
0
votes
0 answers

Sharepoint File Uploading - Limit of file size

Can anyone tell me what is the file limit when uploading a file through code using client object model (javascript) Sharepoint 2013. Thanks
user2598808
  • 633
  • 5
  • 22
  • 40
0
votes
2 answers

Prompt for input on every item in a for loop

Upon page load, I'm trying to use the JavaScript function below to look in a SharePoint list to see if there are any requests for which the current user is the manager, and if so, allow them to approve or reject these requests. //Logic to approve…
0
votes
1 answer

Provider hosted app calendarview, view doesen't get updated after adding event

My application creates a calendar at my site, I have created a view in my code that creates a view for each person that is in my custom contactlist. In my contactlist I have a "User" field which is my username (in my case "Developer"). When I…
Hannes
  • 140
  • 1
  • 3
  • 18
0
votes
1 answer

Caml builder query doesn't work in code

i'm in trouble here! I have a sharepoint site in which there is a photo gallery list (PhotoGallery). I need to query this list do bring back the images from a specified gallery(folder). I developed a web part with a select menu which loads all the…
mnatan.brito
  • 883
  • 5
  • 18
  • 32
0
votes
1 answer

Jquery Dialog Looping Events

Hi i have been struggle with this code since 1 week now. I cant figure out how i can alert newsArray[i].Title when i push the button for the dialog. the function SaveUserToList is just a example, i have a lot of code there. The only thing right now…
Anders
  • 185
  • 2
  • 10
0
votes
1 answer

Extra Recurring Calendar Events Returned By Caml Query For Single Day

My C# application runs outside SharePoint, so I'm using CSOM with a Caml query. I want to find all calendar events, single and recurring, that are scheduled for a single day. I'm getting ALL recurring calendar events that overlap my selected day…
JimBoone
  • 554
  • 1
  • 7
  • 27
0
votes
2 answers

'Microsoft.Online.SharePoint.TenantAdministration.SpoOperation' violates the constraint of type parameter 'T'

I am trying to create a sharepoint app to provision site collections, I downloaded the latest sharepoint client sdk, and practically my code is the same as the one from SPC3999 Rob Howard on Channel…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
0
votes
1 answer

CSOM list item operation

Short and sweet : I'm parsing an XML document and adding new job openings into a sharepoint list as well as deleting them if the job id's and deleting them if the particular job id is not present in the list item collection. Here's the…
Aman Gupta
  • 7,883
  • 5
  • 16
  • 24
0
votes
2 answers

Reading all root node names in an XML document

I'm sure all the pros out there would find this very trivial but I need a quick solution for this in C# I'm retrieving an xml schema of a view in share point which looks like this:
Aman Gupta
  • 7,883
  • 5
  • 16
  • 24