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

0
votes
0answers
6 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: ...
0
votes
2answers
33 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
votes
1answer
17 views

Did Open XML SDK support in SharePoint online office 365 [on hold]

Did open xml sdk support sharepoint online. If not could you please suggest me other ways to create excel file programatically. Many thanks
0
votes
1answer
54 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
16 views

How to check if a Site collection exists using App model (JSOM,CSOM)

Is there a way to check if a site collection exists before creating the site collection? I am doing it using the App/Add-in model. Thanks.
0
votes
0answers
14 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
12 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
9 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 = ...
0
votes
1answer
16 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 ...
1
vote
1answer
29 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
34 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 ...
0
votes
0answers
19 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 ...
1
vote
1answer
30 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() ...
0
votes
0answers
23 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
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
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
1answer
45 views

accessing and modifying page properties in sharepoint using javascript / CSOM / JSOM / Rest api

I have a custom field "webPartId" in my page property Whenever user clicks save, i want to update the field I am not able to get any code snippets for that! The closest i could reach is finding ...
0
votes
1answer
58 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 ...
0
votes
0answers
38 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
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
23 views

CAML query to get a list of item IDs from an item list

I'm using SharePoint 2013 and want to use CSOM/CAMLquery to retrieve some related information in another list. The related list may have 500+ items in it and I want to return information about maybe ...
2
votes
1answer
24 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 ...
1
vote
1answer
33 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 ...
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 ...
1
vote
0answers
17 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 ...
0
votes
0answers
13 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
45 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 ...
1
vote
0answers
20 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
16 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. ...
0
votes
2answers
38 views

Get userID using CSOM powershell

I want to get the User ID using PowerShell CSOM I know its $replacedUser =$web.EnsureUser("domainName\Account") server side but I don't know how to do it client side
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.
0
votes
0answers
26 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
2answers
40 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?
0
votes
0answers
56 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 ...
1
vote
2answers
68 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 ...
0
votes
1answer
54 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 ...
1
vote
1answer
38 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
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 ...
0
votes
1answer
32 views

Getting the right created time with CSOM

We have a csom list item operation, where we get one, and with item["Created"] we get the date and time of creation for the list item. However the problem is that its always returning the UTC time, ...
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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
11 views

Fullscreen Modal Popup from Client App Part [duplicate]

I am working on a Client Web Part with a Modal Popup showing a form that is a SharePoint Hosted App. The problem is that the Modal Popup needs almost a fullscreen size. The Client Web Part is only a ...
0
votes
1answer
47 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?