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

learn more… | top users | synonyms

2
votes
1answer
45 views

Extract text from document in a SharePoint 2013 library

I would like to extract the text from documents stored in a SharePoint 2013 online document library. I have the document loaded using: ClientResult<Stream> data = file.OpenBinaryStream(); ...
2
votes
1answer
400 views

Accessing files in SharePoint AutoHosted App 2013

I am creating an AutoHosted App in SP 2013 and trying to access the file under one folder of remote Web ( need to pick the file from current project directory location and pass that file to another ...
1
vote
1answer
16 views

Remote event receiver setting LastModifiedBy to “SharePoint Program”

I have a remote event receiver, on a list, that fires every time an item is updated, and it works fine. However the "Last modified by"-field on the item is set to "SharePoint program". I have tried ...
1
vote
1answer
38 views

Caml query after modified choices

I have a column with an internal name of: PublicY with 2 choices: Yes/No, the query works but if I change the choice name to Ja/Nej the code will not query the results, why? I have tried to change the ...
1
vote
1answer
35 views

Problem with Caml Query

I need to put this code: <View>"; <Query>"; <Where>"; <Eq>"; <FieldRef Name='PublicY' />"; ...
1
vote
1answer
115 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 ...
1
vote
1answer
79 views

Programmatically add ListViewWebPart to Wiki Teamsite homepage with CSOM in SP2013

Someone who can point me into the right direction? Code snippets? Thanks in advance!
1
vote
1answer
87 views

Remote web application accessing SharePoint with current user's credentials

Can we access SharePoint from a remote application with current user's credentials when user opens a remote page which has server-side CSOM user opens a remote page which has a server-side WCF ...
1
vote
1answer
285 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 ...
3
votes
0answers
87 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..
2
votes
0answers
29 views

Retrieve items from content type

I have the following setup: Root Subsite1 Subsite2 list1 list2 content type: News content type: News How can I retrieve the ...
2
votes
0answers
75 views

Manage links for shared files

I want to create a link using SharePoint CSOM API so anonymous user can read/edit file. I found the following workaround to get it via adding role assignment: var newRoleAssignment = new ...
2
votes
0answers
182 views

Design Package import SharePoint 2013 using App Installed event CSOM

In SP2013, I am trying to import and export the design package from one site to other site using AppInstalled event using CSOM. I am not able to get the context of source site to import the design ...
1
vote
0answers
12 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?
1
vote
0answers
28 views

List version limits client-side

Versioning can be defined the same way in UI in SP2013 and O365: How can we programmatically set these limits in SP2013 without server-side code? Server-side we would have SPList.MajorVersionLimit ...
1
vote
0answers
48 views

Content Search webpart with sort/query using CSOM

How can we add a Content By Search webpart using CSOM when we want to use a custom query (in SP2013)? Would there be an easy way? For example, could we just Import the web part Set ...
1
vote
0answers
13 views

CSOM / Webservice multilingual provisioning site columns, lists,

Is it possible in SharePoint 2013 to create site columns, content types, lists, libraries, ... in different languages (so, with different display names) by CSOM (client server object model) or a ...
1
vote
0answers
23 views

How to set the _CheckinComment with CSOM

I'm looking for a way to set the _CheckinComment. If i try It like this: Microsoft.SharePoint.Client.File myUploadFile = myList.RootFolder.Files.Add(fileCreationInformation); ListItem ...
1
vote
0answers
36 views

Error Setting Ratings using SharePoint Client Object Model

We are attempting to use the example located on this: Site We are receiving the following error: "The assembly Microsoft.SharePoint.Portal.Proxy, Version=15.0.0.0, Culture=neutral, ...
1
vote
0answers
29 views

Jsom not working when user is reader

I am using following code to get terms from a termset in MMS. It is a office 365 solution and some of users is external users which have read permissions. The javascript doesn't work when user is ...
1
vote
0answers
19 views

Manage files with no checked in version - CAML query

I am using Office 365. We have a document library containing more than 12000+ documents, with a number of folders and subfolders. I need to find a way to get all document which have no checked in ...
1
vote
0answers
60 views

Windows Authenticated API calls failing when I use a custom sign-in form for FBA

I have a SharePoint 2013 web application configured for both Windows Authentication and FBA (which is working fine). I also have some code which executes a CSOM request using windows credentials, ...
1
vote
0answers
76 views

How to access Page layouts and site templates using CSOM?

How to access Site Settings > Look and Feel > Page layouts and site templates using CSOM? The page allows end users to change these settings: Subsite Templates: subsites can use any site template ...
1
vote
0answers
312 views

Check given user's listItem permissions with SharePoint 2010 Managed Client Object Model (c#)

Is it possible to determine if a user can access a given item identified by its url without the users context - it has to be done with CSOM. Code so far: var file = ...
1
vote
0answers
131 views

Adding an existing app part using the client object model( finding the xml)

I've recently found this nice thread on adding an existing webpart using the csom: Add an existing WebPart Using the Sharepoint client object Model I've tried the same approach for an app part (so an ...
1
vote
0answers
130 views

Get the Hierarchical Structure of Taxonomy Terms (for all TermSets) using SP.Taxonomy.js

I am trying to get all the terms from the termsets within a term group, maintaining the hierarchy using SP.Taxonomy.js (SP2013). Unfortunately, there seems to be no REST support for taxonomy in SP ...
1
vote
0answers
233 views

Provisioning fields and content types through JSOM

Im trying to add a field to a content type through some code on Chris o' Briens blog here. I have modified the code slightly to add multiple fields to a content type. See below: function ...
1
vote
0answers
129 views

using sharepoint OOTB DragDrop.js library in Custom webpart

I implemented drag and drop file upload functionality with using REST api in my webpart . But i found an OOTB sharepoint dragdrop.js library which has numerous methods to create drag drop control. ...
1
vote
0answers
288 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 ...
1
vote
0answers
96 views

SharePoint-hosted app, with edit mode to update its own properties

I'm using the editMode parameter to detect and display a simple web part admin UI. When the admin clicks a particular button, I want to use CSOM to update the web part's properties for the page it is ...
1
vote
0answers
97 views

Getting column information from a sharepoint 2010 list

I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
0
votes
0answers
19 views

401 when authenticating against Sharepoint Online

Good morning. Being very new to SharePoint, I've been trying to write a very basic app to create a new site inside my Sharepoint Online tenancy, but I can't seem to get it authenticated. I'm using the ...
0
votes
0answers
15 views

SharePoint 2013 External Content type. Populate secondary fields

I am trying to migrate data to a document library that contains a external content type using the SharePoint 2013 client object model. The external content type is pulling from a sql server 2012 ...
0
votes
0answers
23 views

How to create dashboard through CSOM to show workflow from external lists

We have following requirement. SharePoint 2013 standard edition environment is installed. SO no BI site template is possible. Development has to be through CSOM only. Vendor data is stored ...
0
votes
0answers
38 views

SharePoint2013 search exception using CSOM

I have created Bing result source and have attached to SharePoint search. When I go to the search site and perform search it's returning results, but when I tried to access the results using csom it's ...
0
votes
0answers
9 views

OpenBinaryDirect times out when downloading a file from a subsite

I'm trying to download files from sharepoint online. I'm using: Microsoft.SharePoint.Client.File.OpenBinaryDirect(clientContext, file.ServerRelativeUrl).Stream; Which works fine for files at top ...
0
votes
0answers
29 views

Office 365 Client Object Model, Unauthorized Exception

I have been trying to read the contents of a list from a Office 365 site. I used this link as reference. Code: var clientContext = new ClientContext(siteUrl); SecureString passWord = new ...
0
votes
0answers
21 views

Dynamically adding CUI.Controls.SplitButton?

I managed to dynamically add Ribbon to Custom Edit Form, as described here. Now I need to replace Button with SplitButton element with Menu in it. Is there any example about it? I really don't wont to ...
0
votes
0answers
19 views

passing information from Sharepoint to Immersive Sharepoint App

I have created an custom add entry app to sharepoint. It all works however currently the list it works on is hard coded. I want a way to pass the list I want to add an entry to to the application. I ...
0
votes
0answers
25 views

How can I get my CSOM code to authenticate using Windows Credentials when FBA is in use?

The title should really say it all: Web Application with both Windows (NTLM) and FBA CSOM and REST requests are both failing with 403 (Forbidden) ClientContext.AuthenticationMode set to "Default" ...
0
votes
0answers
42 views

How to authenticate user in Office365 (SharePoint Online) for 3-rd party application?

I found the SharePointOnlineCredentials class for Office365, but it requires user name and password. I'd like that SharePoint (NOT MY APPLICATION) asks user to provide user name and password using ...
0
votes
0answers
143 views

Sharepoint 2013 Managed CSOM List Internal name

I'm trying to acces to my custom lists from a provider hosted app with .net Client Side Object Model. I'm using the function: clientContext.Web.Lists.GetByTitle("myCustomList"); I've figured out ...
0
votes
0answers
52 views

Page to Search for matching SharePoint Online 2013 Sites and Subsites across the entire o365 tenant. Language and design options?

I'd like to have a Page on SPO that enables my o365 site admin user to search all SPO site collections and sub sites by a string in the URL, Title and Home Page text. What's the best ...
0
votes
0answers
53 views

field 'choices' not initialized not requested

Hi im using the following code to get choices of a Choice site column. some times Im getting 'Chices' not initialized error in console. var searchtaxonomy_context = SP.ClientContext.get_current(); ...
0
votes
0answers
76 views

Property Equivalents in JSOM (CSOM)

This is a piggy back question off my earlier post here There are several C# properties that I can't find an equivalent for in JavaScript Object Model (aka CSOM... aka SharePoint Object Model). This ...
0
votes
0answers
59 views

Having trouble setting up a secure architecture using the SharePoint App model and an external REST server

We have a situation that I am having a very hard time finding information on. We need to create an app in SharePoint 2013 that uses an external data source. It's an ODBC source accessing a non-MS ...
0
votes
0answers
92 views

How to retrieve user Quicklinks from MySite with CSOM?

this is my first post on SharePoint StackExchange. Is there a way to retrieve current user Quicklinks and show it on the Startsite with CSOM? In this example, the link below "Edit Links" in the Left ...
0
votes
0answers
163 views

Install an app from the appCatalog using javascript CSOM

I'm trying to install an app in a site from the AppCatalog using the javascript CSOM I get the apps from the App Catalog using req.apps = SP.AppCatalog.getAppInstances(clientContext, oWebsite); I ...
0
votes
0answers
348 views

Sharepoint 2013 C# WPF CSOM ListItem.Update() is firing the workflow, but not attaching it to the item properly

Within SharePoint the workflow is set to start when the item is updated. What I'm trying to do is replace the item's file which is selected by the user, change a column value on the item, then check ...
0
votes
0answers
54 views

SPO: A way to get comments of a user

Is there a way to retrieve all comments of a particular user from the SharePoint Online (2013)? I've tried two options: SocialDataService.asmx (called for various URLs - root, personal, blog sites) ...