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

SharePoint Online Access Request Status Codes

I am using CSOM to retrieve items from the "Access Requests" list. (https://sharepointSite.sharepoint.com/sites/siteName/Access%20Requests/pendingreq.aspx) I am trying to figure out all the possible values of the "Status" field. I have found the…
M.Ob
  • 1,785
  • 14
  • 27
0
votes
1 answer

How to retrieve Sharepoint 2010 list item permissions using Javascript Client Object Model

My function for checking List Item permissions in Sharepoint doesn't seem to work. It is placed in aspx file on a Sharepoint 2010 site. I'm getting an error message below when trying to run it. Does anyone know how it should be done ? I found plenty…
Gumis
  • 13
  • 1
  • 3
0
votes
1 answer

Custom Gantt Chart view is not getting listed in standard view menu list

In my project I am using SharePoint Online and Provider hosted app for provisioning new sites. I was able to successfully provision a new task list in the newly provisioned site and a custom Gannt chart view associated with it. But the newly…
Sooraj
  • 41
  • 7
0
votes
1 answer

Read All users related to RoleDefinition of ProjectSite using CSOM

I need to loop through all RoleDefinitiona of ProjectSite and get all users related to each one and add those users to a RoleDefinition of a ProjectSite in another SiteCollection I can loop through RoleDefinitions like : using (var src_ctx = new…
0
votes
1 answer

Upload File from URL to Sharepoint

I want to upload a file from a URL to Sharepoint Online. I looked up various classes and the one I found which looked good was WebClient, I've tried to pull a file which has been uploaded to my app web into a stream and then upload that stream to my…
Junior
  • 315
  • 2
  • 5
  • 9
0
votes
1 answer

How to load SharePoint lists from anywhere in site collection via TemplateID with CSOM?

Background: I am trying to create a C# command line utility to extract list item information from lists that may exist anywhere within a particular site collection. All lists that I am trying to extract from were created from a particular template…
J. Patton
  • 27
  • 10
0
votes
2 answers

Sharepoint client object model copy file versions

I am trying to copy all files from a doc lib to another doc lib in another web application, that can be across environments for example DL in SP2010 to DL in SP2013. So I am limited to use Client Object Model to copy files. I am successfully able to…
sid
  • 43
  • 1
  • 1
  • 6
0
votes
1 answer

Add Button in SharePoint List Ribbon Button Using JSOM

I have to add a button in Sharepoint List Ribbon button & in ECB Menu. here is the code to add ECB menu in Sharepoint List using JSOM. function AddCustomActions() { var listTitle = 'mylist Title'; var clientContext = new…
Sharique Ansari
  • 534
  • 5
  • 12
0
votes
1 answer

get all subtasks (including subsubtasks) of a summary task Sharepoint via CSOM

I have a task item and i want to get all its subtasks including its subsubtasks recursively, preferably via CSOM, but I appreciate any hint to how this could be done. I tried a caml query that queries the ParentID of the task. However the following…
Elie Fares
  • 11
  • 2
0
votes
1 answer

Add a lookup field for a list in Sharepoint Client Model

This is what I've achieved do far: Field parent = list.Fields.AddFieldAsXml( @"
Abhishek
  • 1,974
  • 5
  • 31
  • 67
0
votes
2 answers

PropertyInfo.GetValue on Boolean is always True

I am interating over SharePoint Fields to examine the Hidden Property (Sytem.Boolean) so it can be toggled. I am noticing that the GetValue(f,null) is always True even when I know the field Hidden property is False. I don't see why it keeps…
ChiliYago
  • 11,341
  • 23
  • 79
  • 126
0
votes
1 answer

jQuery .css() not getting background position w/o !important in css

I am hoping someone could help me understand why the jQuery .css() (v1.11) method is returning 0% 0% for elements that have a non-overridden background position defined (in the inspector while running and in the style sheet). What I found a bit…
0
votes
1 answer

How to delete a site-column reference from a content-type in Sharepoint Client model

I am trying to delete a site-columns from the sharepoint website directly from my code. These site-columns are currently referenced under some content-types. So when I execute a code //Delete the…
Abhishek
  • 1,974
  • 5
  • 31
  • 67
0
votes
1 answer

Check if user is allowed to create items on list

I'm querying items from a SharePoint 2013 list via JavaScript / JSOM. The JavaScript is running on a SharePoint 2013 website (not necessarily the same as the one, containing the list, but in the same farm). Now I want to check if the current user…
Hinek
  • 9,519
  • 12
  • 52
  • 74
0
votes
0 answers

Delete a list using SharePoint 2010 CSOM

I am trying to delete a list that contains documents using the SharePoint 2010 CSOM and am using the following code: var list = context.Web.Lists.GetByTitle("Project Documents"); list.DeleteObject(); context.ExecuteQuery(); But I always get the…
awh112
  • 1,466
  • 4
  • 22
  • 34