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)

5
votes
0answers
78 views

How to change list icon of a custom list?

I wanted to change the icon in site content for a custom list in SharePoint Online. Setting the ImageUrl property of the list did the job. But then I discovered that this had also changed the icon for ...
4
votes
0answers
80 views

First CSOM Program failes

Today I copied the following code from my book to test my first SharePoint-CSOM application, but I cannot get it to work properly: using System; using System.Collections.Generic; using System.Linq; ...
3
votes
0answers
71 views

Logged as another user

UPDATE : I've totally disabled the Distributed Cache, however, the problem is still there. For the record, I've applied CU7 for AppFabric as well as SharePoint 2013 Server March '13 CU. No luck so ...
3
votes
0answers
64 views

How to set HTML field security using CSOM

Is there a way to set the HTML field security using CSOM? I already found a way to use PowerShell Scripts but i wondering if there is also a way to use CSOM. PowerShell: $web.ScriptSafeDomains.Add("...
3
votes
0answers
41 views

Method GetAppInfoByName does not exist?

I am trying out the tenant APIs towards an on-premise SharePoint 2013 Server install. This server is up to the October 2015 CU. I following the guidance on Vesa's post: I registered the server-stub ...
3
votes
0answers
174 views

How to get a users' permission in Client Context model C#

Any idea how to convert the following code part to Client Context Model SPRoleAssignment currentUserRole = web.RoleAssignments.GetAssignmentByPrincipal(user); //Go through all Role Definition ...
3
votes
0answers
92 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.
3
votes
0answers
896 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 ...
3
votes
0answers
575 views

“Value cannot be null” exception while loading WorkflowServicesManager

I am trying to start a list workflow in SharePoint 2013 using client object model. But while loading WorkflowServicesManager, it throws the error below - Value cannot be null Parameter name: ...
2
votes
0answers
47 views

CSOM PowerShell - $folder -PropertyName “HasUniqueRoleAssignments”

I'm trying to use the Load-CSOMProperties.ps1 made by Gary Lapointe to report me if a folder "HasUniqueRoleAssignments". This is working fine for webs and lists but it doesn't seem to work for folders....
2
votes
0answers
39 views

CSOM - How to rename a Document library

Is there a way in CSOM wherein I can rename document library using CSOM like we do in SPD(renaming the root folder)? I tried several ways e.g updateTitle,FileLeafRef. Also tried to rename a folder ...
2
votes
0answers
37 views

Site Visits returns zero

I am using CSOM to retreive data for SiteCollection Usage(SharePoint 2010 and 2013). My code is below: Site site = context.Site; Web web = context.Web; context....
2
votes
0answers
152 views

Rest API calls from provider hosted apps

Here is the scenario. We have a product built on linux systems and the data is available through REST API. The web application which is built on JAVA is also hosted on the same environment. Few of ...
2
votes
0answers
47 views

Can't apply filter [ME] to person field updated by CSOM

I create calendar item and add user field value by SharePoint CSOM. Item successfully created but I can't apply [ME] filter to person field. Returned no results. But if I open item to edit and save ...
2
votes
0answers
128 views

How to update the Microsoft.SharePoint.Client.File object Author and Editor property after successful upload

I am trying to update the Microsoft.SharePoint.Client.File object Author and Editor property after successful update. below code I have written for that. foreach (Attachment att in attachments) { ...
2
votes
0answers
33 views

Desktop application needs to support all versions of SharePoint and SPO

I am connecting to the different SharePoint environments using the CSOM. Whats the best way to deploy the available DLLs to support all SharePoint environments? Do I need to dynamically instantiate ...
2
votes
0answers
126 views

Sharepoint List creation from ListTemplet .stp using CSOM

I want to create list using .stp file which is uploaded in to the list template Gallary. --> I am using Console application to create list in online site. --> have an any idea how to add list from ...
2
votes
0answers
111 views

Find alerts in SPO library using CSOM

How can I find alerts set on my lists using CSOM? If necessary, I have the alert GUID and I have the list GUID Alert={391EDCAC-BDC0-4561-8E86-5291E3323CF8} List={E613438C-0DF1-429B-9087-...
2
votes
0answers
63 views

Implementing paging for a list

I have to implement paging for the list data and the paging should be as: previous 1 2 3 next And the new page number should be added automatically if any item is added to the list if it ...
2
votes
0answers
108 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
2
votes
0answers
579 views

How to retrieve webpart xml-definition programatically

I have a Custom Webpart deployed in the Site, to which I need to retrieve the XML definition programmatically using Client side object model, can anybody help? EDIT: I used the following code. ...
2
votes
0answers
204 views

Updating an existing content type field link by JSOM

I have a content type and I would like to set some field links to hidden. The code runs perfectly, but for some reason, when I check in the UI if the field link is hidden, the changes are not applied. ...
1
vote
0answers
15 views

Can not run C# CSOM on Linux

I have some problems with Sharepoint 2013. I have created a C# application for adding list items to a Sharepoint site. I want to use it on Ubuntu 16.04 but have some errors. I can use Mono ...
1
vote
0answers
17 views

Read current site/site collection term store navigation page URL in the code

Dev Environment: SharePoint 2013 On-premise We have a web part on the home page, where we are displaying the terms (reading from Term store navigation). We are doing this by hard coding the term ...
1
vote
0answers
142 views

Copy users between sitecollection in client side object model

I invite external users to a site collection named "Extranet" in my Office365 tenant and needs to give them access to a list in another site collection so I'm doing a timer job for that. My problem ...
1
vote
0answers
28 views

SharePoint 2013 CSOM C# - How to limit results of KeywordQuery to specific folder?

I am currently using SharePoint 2013. I want to limit my results of the query to specific folder within my list. For example entering the oath for the QueryText field: keywordQuery.QueryText = "path:...
1
vote
0answers
23 views

How to add the Calendar view webpart on the webpart page for SHarePoint Online by Powershell with csom

I am trying to add the calendar view webpart on the SharePoint Publishing page by powershell and csom, i was able to add it but it was showing all event view instead of calendar view. Code is added ...
1
vote
0answers
21 views

Deleting Test-licenses from Office365

I have written a method that installs a test-license to my O365-SharePoint. It uses the following method: Microsoft.SharePoint.Client.Utilities.Utility.ImportAppLicense() This works fine, but now I ...
1
vote
0answers
13 views

Permissions required to install License?

I try to install a license using CSOM using the following method: SharePoint.Client.Utilities.Utility.ImportAppLicense When I do this I receive an "access Denied" error. What kind of permission is ...
1
vote
0answers
48 views

Download Large Files from SharePoint Online

I have a C# application in which, using the SharePoint.Client dll, I make client requests to SharePoint Online. Recently, as per this post, I was able to successfully upload a single 5GB file to ...
1
vote
0answers
16 views

SP2013: SP.Result returns 0 when calling get_value()

Maybe it is a very simple fix for this but i have problem with retrieving the m_value from a SP.result. SP.Result {} m_value:false __proto__:Object constructor:function () customFromJson:function () ...
1
vote
0answers
17 views

Meta Navigation: Exclude deleted/unpublished pages programmatically

I am accessing the managed metadata navigation term set via CSOM in a Web Service. This term set includes many navigation terms that are configured to use friendly URL term driven pages, which are ...
1
vote
0answers
32 views

Disable SharePoint 2013 Workflow Trigger when updating list item via CSOM

I have multiple lists in my SharePoint application that have workflows attached to them. These workflows trigger when list items are updated, which when updated from the SharePoint UI is the intended ...
1
vote
0answers
34 views

Can a SharePoint 2010 workflow be created with CSOM in SharePoint 2013?

I would like to be able to create definitions for SharePoint 2010 workflows using XAML from an existing workflow in SharePoint 2013 without deploying a solution. Sharepoint 2013 includes methods ...
1
vote
0answers
41 views

sending document to Records Centre in SharePoint online using CSOM

We have created Records Center on our SharePoint online tenancy. Now we want to send documents from other site collections to Records Center using either CSOM or JSOM. Is it possible?
1
vote
0answers
27 views

Adding ListItem via CSOM trigger both Create and Update Workflows

I'm using CSOM to create listitems in a custom list on SharePoint 2013. On the list I have 2 workflows, one that executes on item create and one that executes on item change. Or "Start workflow ...
1
vote
0answers
44 views

Applying SharePoint theme using CSOM - The request uses too many resources

I have an Azure web job that provisions SharePoint Online sites and during the process it applies an out of the box SharePoint theme. The theme is determined by the process, but can be "Orange" or "...
1
vote
0answers
23 views

2013 CSOM development-accessing List directly as user doesn't have permission to access teamsite

I want to perform CRUD to a list from a console app or Asp .NET website. I am granted access to the list, but not the team site: accessing this https://mycompany.sharepoint.com/teams/teamname/a/b/...
1
vote
0answers
100 views

How to upload document file and its version file using csom in C#

I have downloaded a document file (current version) and its version history files (old version files) from one of my sharepoint site list. Now, I want to upload that current version file into another ...
1
vote
0answers
26 views

.saveWebPartChanges() always re-enables 'Display search box' to checked

When I set JSLinks on WeParts with code: jsl.ctx.load(properties); properties.set_item('JSLink', JSLink); webpartDef.saveWebPartChanges(); It also resets the previously unchecked Display ...
1
vote
0answers
43 views

Accessing Sharepoint through CSOM

I am trying to access a project SharePoint 2010 site using the below code using (ClientContext _clientContext = new ClientContext("https://xxx/proj")) { _clientContext.AuthenticationMode = ...
1
vote
0answers
41 views

Create a custom permsetup.aspx and add extra text fields for new groups

I have the following requirement: When a user creates a new site via Site Settings\Site Content\New Subsite, and he selects "use unique permissions", the user is redirected to the page: permsetup....
1
vote
0answers
43 views

How can I access promoted results using CSOM?

I am basically rolling my own search center using CSOM (because...I need the control to make this thing look decent!). How do I use all the query rule stuff with CSOM? There doesn't seem to be a ...
1
vote
0answers
72 views

Add WebPart to Page with PowerShell

So I have the following code that I took from "http://adicodes.com/adding-web-part-to-page-with-powershell/". It works fine, until the $context.ExecuteQuery() in the AddWebPartToPage function, where ...
1
vote
0answers
16 views

how to find custom permission levels

How to find permission levels that are created by user for a site? i.e other than default permission levels. I want to use CSOM. Do anyone have idea about this?
1
vote
0answers
51 views

SharePoint Online PowerShell Custom Group in Site Settings

I know how to use PowerShell to create a new SharePoint Site Settings link, but I cannot seem to find how to create a custom group within site settings. Here is the code for creating the Custom ...
1
vote
0answers
30 views

Create enterprise wiki page with embed code

We are looking at migrating our very old ScrewTurn Wiki into SharePoint 2013 Enterprise Wiki site. One key features in the original system is the inline PDF viewing with html embed object. I was ...
1
vote
0answers
27 views

Remove users and their MySite using CSOM

I have a scenario in which I have to remove the users from SharePoint after they have left the company. Say, I have 5 users who left the company. So I'll write a CSOM code to read the names from a ...
1
vote
0answers
46 views

How to access subsite's groups with sitecollection context?

I have two sub-sites in my sharepoint site,SampleSite1 and SampleSite2 under Sitecollection called MainSite. http://xyz.sharepoint.com/sites/MainSite/ - SiteUrl http://xyz.sharepoint.com/sites/...
1
vote
0answers
23 views

CSOM: Add app to web that is present in organization app catalog

I need to install Apps to a web programmatically using CSOM. Apps are already added to the App Catalog of the tenancy. Is it possible? I am aware of LoadAndInstallApp API and it works but requires ...