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

1
vote
0answers
35 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"); ...
0
votes
2answers
81 views

Get List Column names C#

I want to Iterate through all List items and its columns names without hard coding the columns names. I only need columns names visible in Sharepoint list settings. but below code is giving me too ...
0
votes
2answers
45 views

How to modify Author field of ListItem

I am building a migration tool that is migrating items from an XML schema to SharePoint list fields. Everything is working fine except when it comes to the migration of Created By fields. I need to ...
1
vote
1answer
51 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 ...
0
votes
1answer
35 views

Not able to get List in office 365

Currently trying to Create a basic SharePoint-hosted app for SharePoint by using Napa Office 365 Development Tools While reading Items From list getting error Created User Custom List on ...
4
votes
1answer
67 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 ...
0
votes
1answer
42 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 ...
1
vote
2answers
60 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
49 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
2answers
87 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
22 views

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

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
2answers
96 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
38 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
42 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
43 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
1answer
31 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 ...
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 = ...
0
votes
1answer
38 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
53 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
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
61 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
34 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
63 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
27 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
23 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
39 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
50 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
22 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
82 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 ...
1
vote
1answer
131 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
84 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
46 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
29 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
33 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
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 ...
0
votes
0answers
20 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
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 ...
0
votes
0answers
28 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
56 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
31 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. ...
0
votes
2answers
54 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
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
51 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
64 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
84 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
36 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
99 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
70 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
53 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 ...