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

4
votes
2answers
58 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 ...
1
vote
2answers
135 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 ...
0
votes
2answers
19 views

SharePoint 2013 Custom Search page with Taxonomy field

We have a SharePoint 2013 on-premise farm and I want to create a search page similar to the one shown below and display search results from a document library(1200+ documents). I found this sample in ...
0
votes
2answers
69 views

The success callback of querySP.ClientContext.executeQueryAsync method

I have a SharePoint 2013 hosted app and use CSOM queries to create multiple list items. My question is related to the parameters of the callback method. After executing my query using ...
1
vote
1answer
15 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
20 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
31 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
19 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
13 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
1answer
76 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
1answer
40 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
16 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 ...
0
votes
1answer
59 views

Create lookup field with additional columns with Provisioning Engine CSOM C#

I have a template.xml with some columns, content types and list. I have a lookup column call Fase that comes of the Fase list and this list has a Orden Column. I need to add Orden field as an ...
0
votes
1answer
19 views

SharePoint 2013 CSOM: How to attach an event receiver to a list

A list has a (C#) event receiver. I would like to attach this (existing) event receiver to another list (actually multiple lists) using the SharePoint client object model (CSOM). Is this possible and ...
0
votes
1answer
36 views

Files.Count returning 0 in SP 2013

We are using the following code to attempt to retrieve a list of files in a SP 2013 library, but Files.Count is always returning 0. The same method works in a SP 2010 environment. Are we missing ...
0
votes
1answer
55 views

Setting List Metadata Navigation settings using CSOM

How would I use the SharePoint CSOM to configure the Metadata navigation Settings for the documents list? This is for an online SharePoint instance and I haven't been able to find anything online for ...
0
votes
1answer
40 views

Hide and display things if user member of group

i have group, were i have some users, if the current logged in user is a member of my group then display that, if the user is not a member of the group then dont display. Right now it first says the ...
0
votes
1answer
48 views

How do I get all current users from a site

I need to get all currently active (not removed users) from a site. I have the following JS that gets all the users but some of them are old users that have been removed from the site (still exists in ...
0
votes
1answer
7 views

Javascript search is working in sharepoint 2007 and not in sharepoint 2013

Javascript search is working in sharepoint 2007 and not in sharepoint 2013. Is there version problem?
0
votes
1answer
57 views

Copy list from Sharepoint Online to another list

I want to copy a list (as it is with the same properties/metadata) from Sharepoint Online to another list in another tenant. I want to also copy all the properties and metadata of each item. I'm ...
-1
votes
1answer
29 views

I only get the first user in the group to says its in the group

Hi i have created a group named 'MyGroup' in the group i have two user. In my code i get the group that the user are in, But only with the first user in the group my alert are displayed that my first ...
2
votes
0answers
27 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
89 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
0answers
20 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
21 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
17 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
0answers
29 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
0answers
36 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
0answers
48 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
0answers
48 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 ...
0
votes
0answers
14 views

unable to get Image Slider Picture Library using CSOM

Facing Error Unable to Get List,Please Help Me currently tying to create SharePoint Hosted App(Image Slide) on my AppDev Site https://akki.sharepoint.com/sites/appdev I have Created Picture Library ...
0
votes
0answers
16 views

How to create/add discussion board to site using CSOM

Is it possible to add or create a discussion board for a site? Many of the resources I find describe how to add a post to an already existing discussion board, but no mention of how to create one. ...
0
votes
0answers
14 views

WebProvisioned Remote Event Receiver never fires and cannot delete the Remote Event Receiver at App Uninstall

I am trying to install a Remote WebProvisioned event receiver from the App Installed event and remove it at App Uninstall. AppInstall fires multiple times so I am detecting whether the event receiver ...
0
votes
0answers
14 views

Check if number field is formatted as percentage

I am trying to figure out a clever way to tell if a field in a SharePoint (Online) list is marked as "Format as percentage". Is there any way to do this? I can of course parse the SchemaXml property ...
0
votes
0answers
20 views

Create and upload a excel file in SharePoint Online using CSOM

I am new to SharePoint online CSOM. I want to create a excel file and the content of the excel is from SharePoint list. I am using CAML query to get list item, I need to write those items to a excel ...
0
votes
0answers
24 views

Adding permissions to folders in doclib powershell csom o365

I have a document library in o365 where I want to add permissions to the folders. The folders I have are from an array and read like \test \test\migration etc. How can I find the correct folder in the ...
0
votes
0answers
14 views

Getting access denied errors while setting properties of web that was just created through CSOM

In a provider hosted app that is deployed to SharePoint Online, I created a new web, which works fine: newWeb = hostWeb.Webs.Add(information); ctx.ExecuteQuery(); ctx.Load(newWeb); ...
0
votes
0answers
24 views

Get lync/skype for business status for SPUser object in list

I am writing a core solution for SharePoint 2013 und use CSOM. I have got a SharePoint list which contains a user element. In the list the lync/skype for business status of the user is displayed ...
0
votes
0answers
19 views

One time authenticating a user for both JSOM and CSOM calls

I have a SharePoint hosted app that requests the user's login credentials and sends them to a WCF service that at some point creates a context in CSOM using these credentials to issue some requests ...
0
votes
0answers
39 views

Check permissions for user - AD group and javascript

We are building a single page application that resides in SharePoint and now we would like to show some components based on the current users permission on a list item. The problem is that ...
0
votes
0answers
17 views

Repeater Control in SharePoint List :CSOM Development

We are customizing OOB SharePoint List forms. Wanted to check how do we achieve Repeater control Multiple People Picker Multiple Checkboxes Multiple Dropdowns All of these controls need to be ...
0
votes
0answers
14 views

Could not find file 'c:\windows\system32\inetsrv\new Client ID.txt

I am using CSOM to upload a file to Share Point list.It says "Server Error in '/App' Application.Could not find file 'c:\windows\system32\inetsrv\new Client ID.txt' " Here is my code, UserCV ...
0
votes
0answers
47 views

Find web part type using JavaScript Object Model in SPOnline

I need to go through all web parts of a page (e.g. default Display page of a list) and set the JSLink property on a particular web part. I can enumerate the web parts on a page and set the property on ...
0
votes
0answers
61 views

change editor and author of a document via powershell CSOM

I am wanting to change the editor and author of a document in a document library in O365 using CSOM powershell. I have managed to change the dates like this : $Upload = ...
0
votes
0answers
25 views

Move files from fileshare to document library but keeping modifed date, modified by CSOM Powershell

I am wanting to do a migration where I move files from a fileshare to a document library in office 365. This needs to be done in CSOM powershell and needs to keep all of the modified dates, modified ...
0
votes
0answers
21 views

Allow App-Only Policies in an On-Premises SharePoint 2013

I need to execute some CSOM (Client Side Object Model) Request with elevated privileges using the App-Only-Policy in a SharePoint 2013 Provider-Hosted App. However the when I try to execute a Query ...