Acronym for Client Side Object Model. It comprises both managed (.NET) and JavaScript object model (JSOM)

learn more… | top users | synonyms

0
votes
0answers
14 views

SP2013 - The object is used in the context different from the one associated with the object

I have a function that initializes a custom taxonomy control, as below (not in myControl.js) function initMyControl() { if (something is true) { var context = new ...
0
votes
2answers
24 views

How to retrieve a file by UniqueId in any List subfolder

I would like to get a file by UniqueId inside of a List. I am not guaranteed which folder the file will be in so I'm using the List.GetItems call and using a CAML query to only pick the file that ...
1
vote
3answers
2k views

2010: Custom List Template ID

I searched everywhere, but could not find a solution that worked for me. We've created a default document library, changed it a bit and saved it as a new document library template from the user ...
0
votes
1answer
425 views

Sharepoint 2013 App Cant Update Fields on Lists in parent web

I have a Sharepoint 2013 O365 App that is Autohosted. It is doing a simple list item creation on a remote sharepoint list in the site that owns the app. I have added app permissions of all kinds to ...
0
votes
0answers
10 views

Index out of range, when context.ExecuteQuery(). While creating the Taxonomy

I am writing a provider hosted app. In this I am trying to create taxonomy group and then multiple term sets. The first set gets created successfully but the second time in the foreach loop, ...
3
votes
2answers
263 views

Deploying and Installing Sharepoint apps into App catalog using CSOM

Can anyone suggest me on how to use SP.AppCatalog() in JSOM or CSOM and get the all apps in AppCatalog, Not AppInstances..
0
votes
1answer
31 views

Reading SharePoint Document Library File names using CSOM

I am trying to read the file names from SharePoint document library. I have uploaded some files and created some folders on the site. I get the ItemCount number. But when i try to get the File count ...
1
vote
2answers
39 views

How to itetrate through files in a document library

I've been creating a provider hosted app and I'm stuck at retrieving Documents titles using CSOM C# my code is as follows. var spContext = ...
1
vote
0answers
13 views

Get before properties in itemupdated event via CSOM in a RER

Can I get the before properties in item updated? I need to check if a field changed its value, between the previous and the new value in a RER with CSOM. The following code tell me the ...
1
vote
1answer
66 views

Setting SPWeb.AlternateCssUrl via CSOM or JS

According to this Microsoft Office 365 Blog post the SharePoint CSOM (.Net, REST, JS) has been enhanced to support setting SPWeb.AlternateCssUrl: ...
0
votes
2answers
50 views

Javascript always failing

I am busy writing some javascript to take a list of selected documents and do some processing on a list with each document in Office365. I am getting a strange error when the code tries to load the ...
3
votes
1answer
46 views

Background tasks/timer jobs in SharePoint O365 with Azure provider-hosted app

I am building a provider-hosted app for SharePoint (O365) which is hosted in Azure. I do all of my logic through CSOM, more specifically using an MVC web project. At the moment, I have some branding ...
1
vote
1answer
171 views

Problem storing SharePoint context in Provider hosted app hosted in a azure website

I created a provider hosted app, which I want to deploy in a azure website. The problem that I'm currently facing is that I don't have a SharePointContext after postback. I'm using the default way to ...
3
votes
1answer
45 views

Checking CSOM people editor value

How can we check the user entered key in Client people editor is user or group? I have created a people editor in CSOM. I can save the value to the list successfully. But before saving i need to ...
-2
votes
1answer
35 views

SharePoint WCF SOAP, Rest, AJAX

I need to know the following things: 1) How is SharePoint used with WCF, REST and SOAP. Any helpful links will be really appreciated. Thank you.
0
votes
0answers
18 views

Getting the version history of a list item

I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something
0
votes
0answers
21 views

Missing SharePoint Online Client Tenant Silverlight dll

I'm trying to find the microsoft.online.sharepoint.client.tenant.silverlight.dll to develop a Silverlight tenant control solution but I can't find it any where. It is mentioned specifically in the ...
0
votes
0answers
9 views

CSOM URL path length restrictions same as normal user operations through a browser or different?

I know SharePoint has a limitation of unencoded URLs of about 256 code units. With small deviations based on how something interacts with SharePoint. As I work with Japanese file names, and sometimes ...
1
vote
0answers
16 views

Possible to change view style client-side?

Is it possible to change the view style (for example to Shaded) client-side (using CSOM, JSOM or web services)?
5
votes
2answers
390 views

How to get List by Url using SharePoint 2013 CSOM

SharePoint 2013 CSOM API contains the following methods for accessing List object: ListCollection.GetById method - returns the list with the specified list identifier ListCollection.GetByTitle ...
1
vote
1answer
13 views

How to remove recent node from quick launch using CSOM?

Code looks pretty straightforward but fails with below exception "The collection was modified. Enumeration operation may not execute."} private static void ...
0
votes
0answers
18 views

Is it possible to use UserProfileService to return all current Birthdays?

I am new to the UserProfileService web service, the url based service accessed through /_vti_bin/userprofileservice.asmx In reference to writing a JavaScript CSOM web part, I am wondering if it's ...
1
vote
1answer
376 views

Set request access email address through CSOM

In the server side object model it's possible to set the request access email address through the property SPWeb.RequestAccessEmail (MSDN). Since we are moving our SharePoint tenant to Office365 I'm ...
0
votes
1answer
44 views

How to create a group in a subweb using CSOM?

I need to create a site with broken permission inheritance. Then I need to create a Members group with contribute access and add people to it. The following code adds the group to the site ...
1
vote
2answers
135 views

Getting regional settings in app part?

I am creating an app part working with dates. I need to show date by users regional settings as well as in SharePoint. SharePoint Page have _spPageContextInfo.currentCultureName, where is current ...
0
votes
1answer
324 views

How to upload a file attachment to a new list item using Sharepoint Online remotely

I need to upload a file to a new list item in Sharepoint Online from a clientapp. The list exists allready, but I create new list items and tried to upload file as attachements. I tried it over CSOM, ...
2
votes
0answers
42 views

JSOM working in Chrome but not IE

I am learning the Java CSOM at the moment and have written a little program that creates a sub-site and assigns a masterpage to it. I am embedding all the code directly on the page. I am finding ...
1
vote
0answers
31 views

Set Task list EnableAssignToEmail in CSOM

I would like to set the EnableAssignToEmail bit on a task list via CSOM after a list is created dynamically. I have found a way to do this in Powershell and in code using SPList: Add-PSSnapin ...
1
vote
0answers
60 views

Create list using C# CSOM in a subsite on Office SharePoint O365

We have a SharePoint 2013 Provider-Hosted App using C# CSOM that has been deployed to a Developer site under the root site. One of the requirements of our app is that it should be able to create lists ...
0
votes
1answer
45 views

SharePoint 2013 - Enumerate all subsites using CSOM and authentication code flow

I'm trying to enumerate all sites that a user has access to underneath a given site in sharepoint. For example, given I've authenticated to https://offtechsmith.sharepoint.com/teams/teamsite, I want ...
0
votes
2answers
61 views

SP 2010 CSOM Javascript: serverRelativeUrl fails

I have a custom html and javascript file housed within a document library of a subsite: http://teamsite/project/testing%20site/shared%20documents/test.html and ...
0
votes
0answers
28 views

Sharepoint 2013: How to get all Lists a user has access to from Provider Hosted app using CSOM

I'm trying to get a list of all Lists that a user has access to in a given SharePoint 2013 site. Specifically right now I'm testing against a SharePoint Online site and authenticating via ...
2
votes
2answers
228 views

Update available page layouts of web using CSOM

Is it possible to update the available page layouts of a web using CSOM? In the interface you can change them by going to the site setting and then to page layout and site template settings, but I ...
0
votes
0answers
43 views

How to retrieve the breadcrumb with REST Api

All, People who have worked on SharePoint 2007 and SharePoint 2010 will notice that breadcrumb is missing in the SharePoint 2013(BTW, Why Microsoft want to remove it in the SharePoint 2013?). But I ...
3
votes
1answer
151 views

Change SiteLogo via csom in SharePoint 2013

Regarding to this Question link. How can i change the siteLogo to a new one? Is it even possible to do it from a ConsoleApplication via CSOM?
0
votes
2answers
28 views

Sharepoint 2013 O365 App cannot create a list in a sub site

I have a SharePoint 2013 app that can create a list in the site that it deploys too but it cannot create a list in a sub site where the app has not been deployed and trusted. Is there any way to get ...
0
votes
1answer
47 views

Pure clientside webpart for Office365

I want to build a pure clientside (angular) webpart for my own environment. I want to have as small of a footprint as possible (So please no app domain or sandboxed solution). It's necessairy this ...
0
votes
2answers
52 views

Search documents contents using SharePoint 2013 REST API or CSOM

I'm wondering if there is a way to query the actual contents of the document using the REST API or using the CSOM and CAML from an ASP.NET application? I remember in a previous job that we used FAST ...
1
vote
1answer
459 views

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010?

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010???? I am using following Code... // Create new list for restore List Item from List ...
1
vote
1answer
118 views

SharePoint 2013: Creating custom list in SharePoint using CSOM

I'm having a difficult time creating custom lists using the SP JS API. Here's what I'm attempting to do: var lciTasksList = new SP.ListCreationInformation(); lciTasksList.set_title('ProjectTasks'); ...
3
votes
2answers
445 views

Creating a SharePoint Wiki Page via JavaScript and REST or CSOM

I'm fairly new to developing SharePoint 2013 Apps, and I was tasked to customize the Create New Wiki Page for a Site. The user has to type in the Title, I do some processing, and then when everything ...
1
vote
3answers
224 views

Programatically Modifying SharePoint List Item-level permissions using CSOM

I have a SharePoint 2013 (on-premises) document library named “Reports”. It inherits the parent site’s permissions (by default). It has a column named “AssignedTo” of type People or Groups (mandatory ...
0
votes
1answer
35 views

Add URL to the Taxonomy Terms Created using CSOM

I have been successful in creating terms in the term store using CSOM code. But I have been not been able to set URL for those terms. Small code snippet - TermSet termset = ...
0
votes
1answer
47 views

Get a Content Type by Name (Title) using CSOM

I am applying a temporary fix to some CSOM code whilst a more permanent fix is given to me hence I want to create the equivalent of ctx.Web.Lists.GetByTitle("Contoso ...
1
vote
2answers
554 views

sharepoint csom get address and phonenumber from current user

I am building some CSOM code in my DispForm.aspx. I try to get the current user from the context. This works and I can get the loginName, id, title and email. But I would like to have the address and ...
0
votes
0answers
17 views

how can access indicator status with client side object model SharePoint 2010 with c#

i want to access indicator status in kpi list in sharepoint 2010. using (ClientContext context = new ClientContext(siteUrl)) { context.Credentials = new ...
1
vote
1answer
88 views

Version Conflict issue with JavaScript Client Object Model code

I'm running into an issue where I'm trying to modify a metadata field on a document within a document library. My code, will check out the document, update the metadata field and then check in the ...
0
votes
0answers
19 views

Issue in retrieving All users from a Person or Group type column using C# COM for each List Item

I have a requirement like this: There is a SharePoint 2013 document library, say, MyReports. MyReports has a column "AssignedToUsers" which is of type Person or Group (multiple selections enabled). ...
1
vote
1answer
422 views

Is it possible to programmatically add page items to Enterprise Wiki using CSOM or REST?

Like a lot of us I'm green when it comes to SharePoint development. I've been tasked with moving MediaWiki content over to a SharePoint Enterprise wiki. At this time I do not have access to the server ...
4
votes
2answers
76 views

Hide document library using CSOM

I want to prevent users from accessing some document libraries. I have used the following code but it didn't work, Any solution? doclibraryinstanse.Hidden = true; doclibraryinstanse.Update(); ...