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

2
votes
0answers
36 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
187 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
40 views

Sharepoint Online CSOM Powershell - Remove Permission level for a Group in a list

I have a list in which I want to remove "Contribute" Permission Level for a particular group "List Members Group". After removing this, I want to add "Read" Permission level. Basically, I want the ...
1
vote
0answers
21 views

Delete major version powershell csom

I have a document library where i have uploaded documents it has 2 major versions and i want to delete the first major version. Is there powershell csom code i can used to do this
1
vote
0answers
23 views

Is there any way to implement numbered pagination instead of PREV | NEXT using JSOM without using search

I'm wondering if there any way to implement Numbered pagination while retrieving items from a list like "PREV 1,2,3..NEXT" instead of just having "prev | next". I followed this code example MSDN and ...
1
vote
0answers
56 views

jQuery not showing custom error messages in PreSaveAction method of sharepoint 2013 list “New Form”

I am validating sharepoint list fields on PreSaveAction method of sharepoint list new form. I have done some customization and have put some labels with error messages under the sharepoint formfields. ...
1
vote
0answers
81 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
37 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
73 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
61 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
0answers
38 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
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
0answers
105 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
50 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
54 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
68 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
17 views

Is there any other way to create a list template programmatically Other than by using Server object?

Server Object is having a function SaveAsTemplate() to create list templates. By any other means can we create the list template other than server object ?
0
votes
0answers
30 views

jquery datatabes deferloading response is of text/html; charset=utf-8 content type instead of JSON

I am using SharePoint Search API to search SharePoint lists and using jquery datatables to display the data. In my code I have set the row limit to 100. So getting the first 100 items/results is fine ...
0
votes
0answers
24 views

how to show all search results using jquery Datatable?

I am searching lists using CSOM Search API and displaying the results using jquery DataTable. My problem at the moment is that my search returns 2134 rows in total, but search api has a limit of 500 ...
0
votes
0answers
17 views

CSOM issue: workaround needed for SystemUpdate & DisableFiringEvents to be able to save current Version to a textfield

To be able to include the current version in Word, I need to have a custom Text field that contains the current version (calculated & Version fields are not available in QuickParts). * The new ...
0
votes
0answers
12 views

How to set taxonomy user profile property via CSOM?

Is there a way to set/update a typed taxonomy user profile property via CSOM? Using the server OM I can use the ProfileValueCollectionBase.AddTaxonomyTerm method, via CSOM it seems that I can only ...
0
votes
0answers
22 views

CSOM Querying a second list based on ID from an array

I have created an Array loading list data in, then displaying the array using knockout data-bind in a table. The issue is I have a second list that is related to the first list that I also need to ...
0
votes
0answers
27 views

Get all discussion board discussions and replies with JSOM

How can I display all discussions in a discussion board with the replies displayed beneath each discussion with JSOM? Getting the discussions or the replies for a specific discussion is easy but I ...
0
votes
0answers
21 views

How to create custom user profile properties using javascript?

Is there any way to create an user profile property using the sharepoint online javascript api? if not which is the correct way to provision custom user profile properties for an app Thanks
0
votes
0answers
19 views

Using CSOM to Start a SharePoint 2010 Workflow with an Assignment Stage Parameter

So I find myself needing to start a SharePoint 2010 Site workflow on a SharePoint Online site. Since this workflow starts a custom task process, it's been created with an Assignment Stage parameter to ...
0
votes
0answers
22 views

Version count not showing what it should do

$Upload = $DestinationFolder.Files.Add($FileCreationInfo) $Context.Load($Upload) $Context.ExecuteQuery() Write-host "Adding the meta data to the document in O365" $ListItem = ...
0
votes
0answers
22 views

Set Associated Content Type fields for a List Item

My goal is to set a list item's Content Type to "Page Layout" and under "Associated Content Type" settings, Set "Content Type Group" to "Page Layout Content Types" and "Content Type Name" to "Article ...
0
votes
0answers
17 views

Copying large quantities of Documents from Provider Hosted App causing Time Out

I'm copying documents from one library to another using the Server Side CSOM from an Azure Hosted Web App. ListItemCollection items = src.GetItems(CamlQuery.CreateAllItemsQuery()); ...
0
votes
0answers
22 views

Uncaught TypeError: Cannot read property 'WorkflowServicesManager' of undefined from CSOM

SharePoint Online 2013. Trying to access SP.WorkflowServices.WorkflowServicesManager from NAPA (CSOM) I am getting error : Cannot read property 'WorkflowServicesManager' of undefined NAPA ...
0
votes
0answers
11 views

How to set site audit report document library location via CSOM

I am configuring site auditing via CSOM. Most of this is easily done via code. The one piece I cannot figure out, is how to set the document library where the audit reports are stored before ...
0
votes
0answers
25 views

How to process list item copy through CSOM and Custom Ribbon Button in Sharepoint 2013

I am attempting to implement custom ribbon functionality in SP 2013. For this, I put a custom button on the ribbon and only enable it when ONE list item is selected (Custom List). This list also has ...
0
votes
0answers
37 views

File not found error when uploading file using CSOM

I am using following code to upload file at the following location but getting File Not Found error at last line "clientcontext.ExecuteQuery();" using (ClientContext clientcontext = new ...
0
votes
0answers
17 views

Add new webpart property to webpart xml in Sharepoint 2013

Currently I'm trying to use This answer to add a web part with XML through CSOM. But i need to define a new webpart property called "DataSiteURL" (String) for my webpart. Is it possible to change the ...
0
votes
0answers
27 views

Hiding a web part programatically using CSOM

I have gone through this article in MSDN: https://msdn.microsoft.com/en-us/library/office/ee539301(v=office.14).aspx There is no example mentioned to hide a webpart. I am trying to programatically ...
0
votes
0answers
19 views

How to Check if a Sharepoint user is in a security group no matter if this is in a AD group CSOM Javacript

I have a Sharepoint hosted app and I need to check if the current user is in a sharepoint security group no matter if this is in a AD inside the group, the following code check if the user is in the ...
0
votes
0answers
22 views

Why user is able to connect to to site using CSOM when he is not authorized

I am using the following code to connect to a site using CSOM in C# application. ClientContext context = new ClientContext("http://myserver"); Web web = context.Web; context.Load(web); ...
0
votes
0answers
12 views

check if a sharepoint site and document library is correct

I have a script which adds files to a document library, but before I actually run this script I want to run another script to test if the site and document library are correct. I tried this : ...
0
votes
0answers
21 views

Adding file permissions from a file share to the same fileshare in office 365

I have this code that adds the permissions to folders from a fileshare to the same file share in office 365. How can I make it so it add the files permissions as well? Function MapPermissions{ ...
0
votes
0answers
70 views

Office 365 upload a file to a document library powershell

$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $pass = ConvertTo-SecureString $credentials.Password -AsPlainText -Force $Creds = New-Object ...
0
votes
0answers
50 views

How to get “Active Directory” groups in Sharepoint 2013 using “Client Object Model”

I tried this code, but I get only the SharePoint Groups. var groupCollection; function getAllGroups() { var ctx = new SP.ClientContext(); groupCollection = ctx.get_web().get_siteGroups(); ...
0
votes
0answers
38 views

Cannot create site template from SharePoint 2013 online using C#

I am facing one strange issue in creating sub site using CSOM. Following steps I have performed. I have created new site collection (Publishing) in sharepoint online Created sub site of type ...
0
votes
0answers
14 views

CSOM timeout when attaching file to list item

I am attaching files to list items and encounter the following error message: The operation has timed out. Looking at the files that throw this exception, I see that they range in size from ~7MB to ...
0
votes
0answers
21 views

Shared files not being displayed in “Shared with me” using CSOM

I'm using the following code to share items within OneDrive. private static void Main(string[] args) { using (var ctx = new ...
0
votes
0answers
19 views

Get checked out items that don't have checkedin version (yet)

In a document library, I need to get all the files/items, even the items that don't have yet checked-in versions. Is this possible and how? I'm using CSOM (C#).
0
votes
0answers
24 views

Querying folder's content in OneDrive for Business using CSOM works extremely slow

I try to get a content of specific OneDrive folder using Sharepoint CSOM 2013. The version of Microsoft.Sharepoint.Client.dll assembly is 16.1.3912.1204. Here is my code. I've tried two working ...
0
votes
0answers
57 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
67 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
39 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
29 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
33 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); ...