The client-side object model (CSOM) provides access to a subset of the SharePoint Foundation server object model, including core objects such as site collections, sites, lists, and list items and allows you to program against these from client side applications.

learn more… | top users | synonyms

8
votes
1answer
290 views

Code editor (IDE) for CSOM developement - Sharepoint

I am searching for a code editor with which I can connect to SharePoint library, like I can open a complete library in the editor, edit, save changes, which will be reflected in the library. ...
6
votes
1answer
53 views

Is context.executeQueryAsync a transactional operation?

I update multiple items in a loop and then call executeQueryAsync() on ClientContext class and this call returns error (failed callback is invoked). Can I be sure that not a single item was updated of ...
5
votes
2answers
237 views

Fail to send email by utility class

I have utility class to send email. currently i am facing error :- a recipient must be specified EmailProperties emailp = new EmailProperties(); emailp.To = new string[] { ...
5
votes
3answers
77 views

SP Online - Error deleting a site collection using CSOM

I am trying to delete site collections using CSOM script. Below is the code snippet : using (ClientContext tenantContext = new ClientContext(siteURL)) { tenantContext.Credentials = new ...
5
votes
1answer
149 views

Move web to recycle bin using CSOM

I have the code below, that deletes all websites below a specific web. It works fine, but deletes the webs permanently. I want it to move the webs to the recycle bin instead. What do I have to change ...
4
votes
1answer
290 views

Powershell: Populate a Multi-Value People Picker via CSOM

I'm currently working on a script to update a SharePoint list in a 2013 Dedicated environment. One of the fields on the list is a Multi-Valued 'People Picker' field and I can't figure out how to ...
4
votes
1answer
337 views

CSOM Search API does not return all the results

I am having a problem with the code below. It is not returning all the rows/items which are found in different lists. The total number of items is 28, but the code below is returning 19. I have set ...
4
votes
1answer
488 views

executeQueryAsync callback with a while loop

I am fairly new to javascript and have spent some time trying to understand callbacks as they relate to SharePoint's CSOM, but have had some issues. Essentially, I am running a query to get a ...
4
votes
2answers
93 views

How to get people picker column user login name using CSOM in Powershell?

currently i have ABC list with People column type[Person or Group] i am trying to get user name from column using CSOM in Powershell script for SharePoint Online.. so please suggest some solutions.. ...
4
votes
2answers
129 views

Can we access the sharepoint 2013 list from another web application using CSOM

I have to access the sharepoint 2013 list from the site under another web application in the same farm. Is it possible I tried it but, it is not happening. Both the web applications lie in the same ...
4
votes
1answer
34 views

Can we unlock a ShortTerm lock via CSOM for SP2013

We are using SP2013 with OWA installed. Users often complain about a file stored in SharePiont being locked by another user not in office. Error is "The file "xxxx" is locked for exclusive use by ...
4
votes
1answer
87 views

CSOM combining CAML query with method call (GetWOPIFrameUrl) or two queries on the same instance

I am trying to optimize some code that calls the GetWOPIFrameUrl method for list items that were retrieved using a CAML query. The original code executed the CAML query to get the list of items, then ...
4
votes
1answer
282 views

Uploading a large file to Office 365 via CSOM PowerShell

I have the following code : $FileStream = New-Object IO.FileStream($File.FullName,[System.IO.FileMode]::Open) $FileCreationInfo = New-Object Microsoft.SharePoint.Client.FileCreationInformation ...
4
votes
1answer
29 views

Site content type changes are not propagated to inheriting list content types

I have the following situation: I've created several site columns en site content types I've created several sub webs with list, inheriting these content types I assumed that if I updated the site ...
4
votes
0answers
30 views

How to find the last Logged-In time for the external user for a Sharepoint online Site?

I need to know about the information for the external user last logged-in time over a site. Is it possible to get through REST or Client-Object Modal?
4
votes
2answers
76 views

Is it possible to create custom User Profile Properties using CSOM or SPO PowerShell?

I have not been able to find much information regarding creating custom User Profile Properties via CSOM or SharePoint Online PowerShell. Is this possible, and if so, how do I go about doing it?
4
votes
2answers
97 views

SharePoint 2013 - Unique permissions for claims

This is about SharePoint 2013 On-Premise environment. We've a scenario in which certain content is authored in source site collection and published to a target site collection via cross-site ...
3
votes
4answers
103 views

Compatiblity when using CSOM or SOM

If I want to develop an application in .Net using C# which will perform simple operations such as: Connect to a site using user/password Retrieve document libraries Upload file in document ...
3
votes
2answers
123 views

how to get a list's add new item URL with JSOM?

I'm trying to figure out how I can get a list's add new item URL using JSOM in SharePoint 2010. This is what I have so far to get if the current user has edit access on the list. ...
3
votes
1answer
53 views

Unable to get list using CSOM on SharePoint 2013

I'm trying to get a list using CSOM in a SharePoint 2013 that was migrated from 2010. This is the code that I'm using, and it is working in all my environments except this one. function ...
3
votes
1answer
295 views

Recovering a file from the recycle bin

I'm working on a general function to recover an item programatically from a recycle bin via Powershell and CSOM. This is what I have so far, it doesn't throw an error, but it doesn't recover the file ...
3
votes
2answers
207 views

Creating site column and add it to content type

I am using the below code Web rootWeb = clientContext.Site.RootWeb; rootWeb.Fields.AddFieldAsXml("<Field DisplayName='Session Name' Name='SessionName' ID='"+new GUID()+"' ...
3
votes
3answers
116 views

Query multiple lists using javascript/CSOM

I'm about to query multiple lists using JavaScript (JSOM, SharePoint 2010). It's working when querying one list in a time, but that's annoying when I'm having lots of lists. Working example: ...
3
votes
2answers
87 views

Unable to Unregister UserCustomActions added at location scriptlink using CSOM

Below code was used to add Custom action to site <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script> <script type="text/javascript" ...
3
votes
1answer
26 views

Passing password in encrypted form to CSOM model

I want to send the password in encrypted form when creating a new ClientContext object. Is it possible and how? using (ClientContext context = new ClientContext("http://yourserver/")) { ...
3
votes
1answer
162 views

list all users in an office 365 site powershell csom

How can I list all the users from an office 365 account. I have tried this: $users = $Context.web.SiteUsers; $userinfos = $Context.web.SiteUserInfoList; ...
3
votes
1answer
43 views

Get document ID with CSOM

I'm using the following code to get a document via its documentid in a ASP MVC application: ... // Get Document ID ctx.Load(uploadFile, f => f.ListItemAllFields); ctx.ExecuteQuery(); documentID = ...
3
votes
2answers
55 views

Performance will be better using CSOM or REST API to retrieve data from 4 lists simultaneously.?

I am developing Sharepoint hosted app, and there is a situation where i need to get the data from 4 lists simultaneously, then use it later on. I am able to do it using CSOM. But performance wise what ...
3
votes
2answers
145 views

SharePoint 2013 add multiple attachment to a List at one shot

I have to attach multiple document as an attachment to a List item, I want to achieve this functionality at one shot. I have found a few examples where using loop they are adding the attachments. ...
3
votes
1answer
38 views

SP2013 - Failed to call, back to back executeQueryAsync() functions

This is exactly what I want to accomplish, given below are the steps I'm performing. Update sub task status based on subTaskId (SP Task List), using executeQueryAsync() Get all sub tasks based on ...
3
votes
1answer
39 views

Combine SharePoint Lists in a different SharePoint Site

I have a task to create a SharePoint List that is a combination of 2 lists present on another SharePoint site. There is no admin access to this site. Is is possible to get it and manipulate it? ...
3
votes
1answer
60 views

'Microsoft.Web' is a 'namespace' but is used like a 'type' in CSOM sharepoint

I am new to CSOM and below is my first console application. the web is not recognising. Though all the dll in 15 hive are verified. Please help using System; using Microsoft.SharePoint; using ...
3
votes
1answer
259 views

Is it possible to get “Active Directory” groups and members using client object model in sharepoint2013?

Is it possible to get "Active Directory" groups and members using client object model in sharepoint2013? If any one know please share your ideas. :)
3
votes
3answers
64 views

Cannot contact site at the specified URL on try ClientContext.ExecuteQuery();

I try to get list from remote SharePoint server using CSOM in .NET Web Application, but ClientContext.ExecuteQuery() return exception Cannot contact site at the specified URL If I try to get ...
3
votes
0answers
28 views

Method GetAppInfoByName does not exist?

I am trying out the tenant APIs towards an on-premise SharePoint 2013 Server install. This server is up to the October 2015 CU. I following the guidance on Vesa's post: I registered the server-stub ...
3
votes
1answer
59 views

Enable Labels (via Retention policy) in List: How?

In my SharePoint App, I want to provisioning a document library and set the following list setting: Information management policy settings > Set source of retention to "Library and folders" ...
3
votes
0answers
52 views

How do I get a list of followers for a content?

I need to know who is following a site a document or a tag. found how to get followers for the current user but not for a content.
3
votes
0answers
463 views

CSOM site provisioning error: The request uses too many resources

I continue to get an error (sometimes) when provisioning a web using CSOM. According to this MSDN article, this error is returned when the CSOM request exceeds 2MB. I watched the call in Fiddler and ...
3
votes
3answers
733 views

SP O365 upload big file via CSOM

Hi I try to upload large files (900 MB) to SP Online (actually the OneDrive Business) but seems to follow SP style. Tried this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
2
votes
4answers
133 views

What exactly is the webPermMasks property?

I'm trying to understand what exactly is the "webPermMasks" property inside the "_spPageContextInfo" object, I tried to look in many websites on the web and also in the MSDN. In the MSDN I wasn't ...
2
votes
1answer
110 views

How a CSOM or JSOM code gets permission to do Add/Edit/Update operation on list?

While RunWithElevatedPrivileges is applicable in Server side code how a CSOM or JSOM code gets permission to do Add/Edit/Update operation on list?
2
votes
1answer
222 views

How To Create a Picture Library in SharePoint Online(office 365) Using CSOM-JavaScript?

Currently I have created SharePoint Hosted App (Picture Slider) using Napa Office 365 Development tool. So far, I have created picture Library Manually, and now trying to create Picture Library using ...
2
votes
1answer
105 views

Configure custom forms for New and Edit using CSOM

I want to replace the New and Edit forms for a specific list. I have a SharePoint Add-in which has two forms (one for New and one for Edit) and now I want to make sure that when a user click New or ...
2
votes
1answer
83 views

Query list for all list items and their attachments using CSOM

I've used the following code to retrieve the list items on my SP site. The following code will return "Value does not fall within the expected range" if I try to get the AttachmentFiles: ...
2
votes
2answers
20 views

Where are the sharepoint 2010 client assemblies

I am wondering where I am able to download the sharepoint 2010 client assemblies (the ones located in folder 14)
2
votes
1answer
23 views

SharePointContextProvider not found when Creating a provider hosted app with VS2015

I try to create a provider hosted app (MVC) with VS2015. I use the standard template-approach like described there: http://chakkaradeep.com/index.php/building-apps-for-sharepoint-with-mvc/ (Or many ...
2
votes
1answer
42 views

Uncaught Error: Incorrect usage of exception handling scope

I am trying to implement try/catch scope in my JSOM, but I am getting the error message in the question's title. Below is my code: errScope = new SP.ExceptionHandlingScope(context); ...
2
votes
1answer
95 views

ServerUnauthorizedAccessException Getting the Term Store in Office 365 CSOM

I have a Sharepoint provider hosted app and it get the term store in Office 365, It worked well for all users until a few days ago. Now fot the site collection administrators work fine but the others ...
2
votes
2answers
137 views

PowerShell CSOM set web inheritance

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent? If it is possible ...
2
votes
1answer
98 views

Prevent Workflow Status Column From Being Added To Default View (CSOM)

I'm using CSOM, when I publish workflow I have got additional workflow column in my default view. I found similar question, but answer is not suits for CSOM. Can anyone advise what need to do to to ...