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

7
votes
1answer
184 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. ...
4
votes
1answer
65 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
1answer
62 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
2answers
60 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
1answer
30 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
55 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 ...
2
votes
4answers
55 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 ...
2
votes
1answer
82 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
40 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 ...
2
votes
1answer
31 views

Missing properties of _spPageContextInfo after page load

I have a script that provision site collections under a specific managed path. In these site collections, I have sub webs with page libraries in which I have several different pages with custom ...
2
votes
2answers
2k views

Send Email from CSOM

Is it possible to send an Email from an Autohosted Sharepoint 2013 app from CSOM code (C#) with an attachment? I have the following code: EmailProperties properties = new EmailProperties(); ...
2
votes
1answer
38 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. :)
2
votes
0answers
30 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.
2
votes
0answers
136 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 ...
1
vote
2answers
62 views

How to attach files to list item using Client Object Model?

I have a SharePoint List to which I am adding new ListItems using the Client Object Model. Adding ListItems is not a problem and works great. How to add Attachments?
1
vote
2answers
83 views

Adding Read-Only-permissions to a list for a Sharepoint Group using Powershell CSOM

I am trying to add read-only-permissions to a specific group called "Students" for a list I have created called "Quiz". I have to use PowerShell CSOM, and in every other tutorial I've been through, ...
1
vote
1answer
55 views

How to Upload Images to SharePoint Online(Office 365) Picture-library using CSOM (Java Script)?

currently created Picture Library using csom on host Web in my last question, now trying to add some Images to that Library, So for that created Image folder into SharePoint Hosted App. how to achive ...
1
vote
1answer
59 views

breakroleinheritance for a folder powershell csom

I am trying to break permission inheritance for certain folders in my document library in office 365. However when $folder.BreakRoleInheritance($false) is executed I get an error: Method ...
1
vote
1answer
57 views

looping through subfolders in document library

I have a document library and I want to loop through all the folders I have in it. I have this piece of code $Context.Load($List.RootFolder.Folders) $context.ExecuteQuery() ...
1
vote
2answers
96 views

Get multiple list items by respective IDs - Javascript object model / REST API

I am developing a custom ribbon action as Sharepoint hosted app, where the user can select any number of list items and click on the action. On click of the ribbon action, the app redirects to the app ...
1
vote
1answer
66 views

How can I update a Site Column with the content of an array with javascript CSOM?

I'm relative new to Sharepoint 2013, I'm trying to update the content of a Site column with the content of an array, I can retrieve and visualize the content of my site column, the user is able to ...
1
vote
1answer
25 views

Create content type from xml using client server object model

I have one xml in which all the declaration of the content type are added like <ContentTypes> <!-- All Content Type Declarations --> </ContentTypes> I can't use sandbox solution ...
1
vote
1answer
78 views

List all page under sub site with Sharepoint CSOM

I try to get all pages under a subsite with javascript. I'm very new to Sharepoint. I built an object to handle these queries, but i can't retrieve the pages. I can get the Documents list. Please ...
1
vote
1answer
129 views

Insert SharePoint 2010 list item type Multiple line text using C# and Client side object model

How do I insert a Multiple Line Text in a table column with nvarchar(50) How do I insert a Number into a column with int ClientContext context = new ClientContext("http://sp2010"); Web web = ...
1
vote
1answer
110 views

SharePoint Online - Update User Profile Properties via CSOM App

I have a console application where I am updating SharePoint Online user profile properties via CSOM. When I do it via the following code below (using a username and password), it works just fine. ...
1
vote
0answers
50 views

SharePoint 2013 CSOM where is Folder.MoveTo?

I have to implement a functionality of moving a document folder and was hoping to use Folder.MoveTo; But I don't see it in the Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime for ...
1
vote
0answers
10 views

How to update item properties for an existing document found by search with CSOM?

You don't know which library it resides in, nor site, nor site collection. The only entry point is the search center URL or _api/Search endpoint. The problem is that when you retrieve the File it is ...
1
vote
1answer
50 views

check if a user exists in a sharepoint site

Is there anyway to check if a use exists in a office 365 site. I am adding meta data to items in a document library and I am using ensureuser but if the user is not there I don't want it to be added ...
1
vote
0answers
30 views

Get spusercontext like _spPageContextInfo on page load

Is there any way to get the Current user details once the page loads in SharePoint 2013 like we get data for _spPageContextInfo I don't like to call below methods again and again var context = ...
1
vote
0answers
33 views

Create a new list from custom template with CSOM in SharePoint Online

I am trying to create a new list from an existing list template using CSOM in a SharePoint Online environment. Here is my code: using (ClientContext ctx = new ClientContext(WebURL)) { ...
1
vote
0answers
32 views

How to get the correspond listItem from the last major version of a file via CSOM

I am trying to get the last major version of a file in a sharepoint-list by using CSOM with the following Code: var web = clientContext.Web; var list = web.Lists.GetByTitle("MyList"); ...
1
vote
1answer
48 views

Set StorageQuota on existing site collection using CSOM and Powershell

Is there a way to set storage- and resource-quota on existing site collection using CSOM and Powershell? there is no MaximumStorageLevel property like at SiteCreationInformation using Powershell ...
1
vote
2answers
56 views

CSOM returns 403 Forbidden when checking site collection

I am creating a console application to create Subsite's, lists, list items etc. I have a simple function that checks if a SiteCollection exists and am met with a 403 Forbidden error when calling the ...
1
vote
1answer
47 views

CSOM modify “new discussion” link when creating discussion board

I am creating a discussion board via CSOM and am wondering if there is a way to modify the "new discussion" text when creating the discussion board? Here is a snippet of how I am creating the list: ...
1
vote
1answer
20 views

Set AuthorizationFilter property of a WebPart

I have set the AuthorizationFilter using the web interface, and successfully read the value. File file = context.Web.GetFileByServerRelativeUrl(url); LimitedWebPartManager wpm = ...
1
vote
1answer
49 views

Javascript Object Model SharePoint 2010 Item Level Permissions With Group

I have been trying for some time now to do something that should be simple using JAVASCRIPT CSOM in SharePoint 2010. I have working code that can break list item permission and add a user to an item ...
1
vote
1answer
118 views

Download all files and folders from document library to local directory o365 powershell csom

I have a document library on Office 365 which I want to download to my local directory via powershell csom. I want to keep the file structure so its exactly the same in my local directory as it is in ...
1
vote
0answers
30 views

How to validate current user permissions for a given Term Store Group using CSOM

I can't seem to find a way to check for the current user permissions for a term store group or term set in Sharepoint Online. I know the REST interface does not support any kind of interaction with ...
1
vote
0answers
30 views

REST analog of SP.Utilities.Utility.formatDateTime

I would be very glad if someone help me, I am trying to find REST analog of SP.Utilities.Utility.formatDateTime function: var context = new SP.ClientContext.get_current(); var web = ...
1
vote
0answers
19 views

Linking List Web Parts Using CSOM

I'm looking at linking 2 list webparts on a page. I have found code that suggests it is possible on the server side object model here. ...
1
vote
1answer
14 views

Creating a Web Part to display Site Owner Group Members via CSOM

Does anyone have an example of displaying members of the Site Owners group on a SharePoint Page using CSOM? I'd like to have this show like a web part for each Site in SharePoint 2013.
1
vote
0answers
50 views

SP2013 CSOM - 401 Unauthorized Exception from Server - What Feature/Service is the issue

I try to access a SharePoint 2013 Server via C# CSOM. The only thing I do is create the ClientContext, set the context.Credentials to my NetworkCredential, and ask for the Web Web web = context.Web;. ...
1
vote
1answer
42 views

Authenticate with SharePoint 365 via CSOM using an API Key

I am trying to build a MSSQL 2014 SSIS Package to update our SharePoint Online Term Store using CSOM. The SSIS package operates in the same fashion as a Console Application. I would like to be able ...
1
vote
0answers
41 views

Multi-factor authentication enabled Office 365 site

I am looking for any working examples of remote CSOM or SOAP OData calls against Office 365 with multi-factor authentication enabled. The available documentation is unclear on this scenario. I think ...
1
vote
1answer
120 views

Getting the User Profile Picture URL by E-Mail via CSOM

I've seen many questions about how to achieve the User Profile Picture URL via the CSOM (Client-Side-Object-Model) API. However none of the solutions worked or they required the Account Name of the ...
1
vote
0answers
49 views

Add user to owner group from High Trust App (user + app policy)

I have an High Trust Provider Hosted App, which is using App + User policy [User - ManageWeb/Owner and App - Full Control] Web oWebsite = clientContext.Web; ...
1
vote
2answers
178 views

How to get all the sharepoint 2013 site groups using C# client side object model

How to get all the SharePoint 2013 Site Groups using C# Client Side Object Model I am using VS 2013 on my laptop and SP 2013 is on the network I read that I have to use Credentials or equivalent ...
1
vote
0answers
55 views

Sharepoint Workaround for Mixed content (Insecure Script) Error

I am using a client side script in a SharePoint page. Since the script is hosted in other server and delivered through http, I am getting a mixed content error in javascript console. Mixed ...
1
vote
1answer
57 views

How to make cross site collection call using CSOM for on premise provider hosted app

I have requirement that Provider hosted app is in in http://localhost:1234/site1 for example and I need to get the list items from the list in http://localhost:1234/site2 Uri hostWeb = new ...
1
vote
1answer
18 views

Utility.SearchPrincipals returns users as SecurityGroups

When I call SearchPrincipals to search for a user name, I get back results with a PrincipalType of SecurityGroup instead of User. This is odd since the user should be a.... user. What are the reasons ...