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)

4
votes
0answers
66 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
70 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
50 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: ...
3
votes
0answers
36 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
68 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
669 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
515 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
12 views

How to debug the sharepoint web proxy

I am using the sharepoint web proxy to call the AAD token endpoint web service in Azure. When I do the call, the response calls my error callback with a jqXHR object that contains the following: { ...
2
votes
0answers
27 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
21 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; ...
2
votes
0answers
70 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
43 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
49 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
31 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
94 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
56 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} ...
2
votes
0answers
50 views

SharePoint Workflow Subscription Service failed

I have one requirement to start the SP workflow through JavaScript. For this, i have wrote some lines of code to start the workflow.But I am getting a Subscription failed error due to undefined ...
2
votes
0answers
57 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
104 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 ...
2
votes
0answers
89 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
189 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
7 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
11 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
14 views

Get Video Source from variable

I am currently using SharePoint to query a pages library for a video, the aim is to then display this video in an iframe, I am currently using csom to get the video source from a Page, however this ...
1
vote
0answers
22 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
14 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 ...
1
vote
0answers
36 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
19 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
39 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
37 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: ...
1
vote
0answers
55 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
13 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
26 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
19 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
33 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 ...
1
vote
0answers
19 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 ...
1
vote
0answers
38 views

SP.Taxonomy get_parent().get_id()

I have been working with this for awhile. I can get the current items without issue but when i try to get the parent id of an item. Javascript throws an error. I have this sort of working using the ...
1
vote
0answers
39 views

Sharepoint permissions regarding One Drive

I am creating an application which makes folders for users and sharing it to them, in a main OneDrive account. Seems like the permission are not the same or some how being overridden by OneDrive ...
1
vote
0answers
70 views

How to remove workflow associations/subscriptions

Is there any method available in CSOM to delete workflow subscription from site. I tried with WorkflowDeploymentServiceDef.DeleteObject() and WorkflowDeploymentServiceDef.RemoveFromParentCollection() ...
1
vote
0answers
50 views

Document set options via CSOM

I'm trying to disable the option "Add the name of the Document Set to each file name" for a document set I create via CSOM. I managed to set shared fields and welcome page fields, but I don't find ...
1
vote
0answers
42 views

Create a list from the template with content (SharePoint Online)

I have created a simple list and saved as a template: Unfortunately the template has the same ID as regular CustomList: This is by design and - I suspect - cannot be changed (the property is ...
1
vote
0answers
89 views

Get Internal Name of Item using CSOM in Powershell 2013 SharePoint Online

[Microsoft.SharePoint.Client.List]$list=$web.Lists.GetByTitle($listName); $qry=[Microsoft.SharePoint.Client.CamlQuery]::CreateAllItemsQuery() $items=$list.GetItems($qry) ...
1
vote
0answers
21 views

Wait for AddIn uninstallation

I'm in the process of writing some PowerShell script to do some work with SharePoint Online AddIns (.app), have a look at the image below: As you can see from the highlighted syntax, I'm telling ...
1
vote
0answers
40 views

Accessing SharePoint 2010 (using TMG/NTLM auth) via CSOM using C#

I can't seem to get past a 401 unauthorized error when using C# to access SP2010 CSOM. The auth of SP2010 is using TMG/NTLM. I have tried this blog, but still getting 401. Anyone have luck with this ...
1
vote
0answers
14 views

Catch UserProfileNoUserFoundException exception

I have a requirement where I am checking a user account whether it does exist in User Profile Service or not. And if the account doesn't exist then it will create an account. I am using CSOM for this. ...
1
vote
0answers
38 views

CSOM: WorkflowInteropService is returned null

I'm trying to run SP2010 workflow in SP2013 portal and stuck on the nullable interop service... The following powershell script returns $interopService.ServerObjectIsNull == false, but when it's run ...
1
vote
0answers
86 views

SharePoint Online (Office 365) Workflow to Copy New File Versions to Record Center Automatically

We have a design goal to copy every new version of files in our Office 365 / SharePoint Online-based Document Center site to a separate Records Center site automatically using a SharePoint 2013 ...
1
vote
0answers
129 views

Enable Enterprise keywords in SharePoint online using Powershell/CSOM

I'm setting up a Office365 / SharePoint Online portal using Powershell and CSOM and have sorted almost everything out except adding this: Library Settings -> Enterprise Metadata and Keywords Settings ...
1
vote
0answers
35 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 ?
1
vote
0answers
248 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 ...