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

learn more… | top users | synonyms

0
votes
1answer
7 views

The remote server returned 403 forbidden when creating subsite using remote provisioning pattern

I have the following scenario on sharepoint online. One Site collection with: RootWeb List Clients List Projects Subsite called Clients for hosting each client subsite One RER to create a client ...
2
votes
2answers
115 views

Sharepoint 2013 Development Boundaries

I need some understanding around SharePoint 2013 Development model. What are SharePoint 2013 Development Boundaries? What SharePoint developer can and cant do with each model?
0
votes
0answers
13 views

SharePoint Online Tenant Client issue when delete a site collection OR restore a site collection

Please follow below scenario using your browser: ( I tried in IE and Firefox) Go to http://-admin.SharePoint.com Login as administrator Try to delete a site collection Note: You can ...
0
votes
1answer
24 views

How to download a folder from sharepoint given URL using CSOM

I am new to SharePoint development, so forgive me if I am asking stupid questions. I have spent quite some time searching the web without success, so I am hoping to find an answer here. Within a .NET ...
2
votes
1answer
44 views

SP Field.Hidden property not hiding?

I have set the property .Hidden of one field to $true. $field=$List.Fields.GetByTitle("Business Phone") $ctx.ExecuteQuery() $field.Hidden=$true The change has been applied successfully and if I ...
1
vote
0answers
23 views

CSOM object not initialized

I have code that gets group information from a SharePoint Online site using the CSOM API. I want to compare the id of a group with the ids of the associated groups of the web. When the code runs in ...
1
vote
1answer
39 views

Getting SharePoint feature properties programatically using CSOM in SharePoint Online

I am working on "Getting properties of SharePoint Feature using CSOM in SharePoint Online". Following is the code which I wrote : try { Password password = new Password(); ...
1
vote
1answer
556 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
0answers
11 views

List all workflows with WorkflowServices throws exception. GetWorkflowDeploymentService returns null

I try to list all site workflows. I followed several examples and try to get the workflows by using CSOM and JSOM. This always fails with the error message: Cannot invoke method or retrieve ...
0
votes
0answers
12 views

Migrating SP2010 List Items to Office 365 creates empty items in O365 [CSOM]

I am trying to migrate SharePoint 2010 list items to an O365 list. But when the code is executed, it creates empty list items in O365 list even though "newItem" has the correct key value pair. Here ...
0
votes
0answers
17 views

List does not exist when trying to startworkflowonlistitem from CSOM

Using SharePoint 2013 on Windows Server 2012 Standard. I believe this is an issue with permissions. When trying to start a workflow on a staging server, the following exception happens (as shown in ...
0
votes
1answer
900 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, ...
0
votes
0answers
35 views

SharePoint 2013 Provider Hosted App is not working after Published to IIS throwing object reference error in Getting clientcontext

I've Created a SharePoint 2013 High Trusted Provider hosted app . Its working fine while debugging from Visual Studio , But once Published to the remote iis and trying to add the app from the App ...
0
votes
1answer
28 views

Error in migrating SharePoint 2010 list fields to Office 365 list [CSOM]

I am trying to migrate a SharePoint 2010 list to Office 365. I created a new ListCreationInfo for a new list in O365. But when i am to trying add fields from SP2010 list, its giving me an error after ...
0
votes
1answer
330 views

Hiding the toolbar of a Listview webpart through CSOM

I recently successfully added a web-part to the frontpage using the method from Add Document Library XsltListViewWebPart using CSOM or web services However, it seems impossible to disable the toolbar ...
4
votes
2answers
1k views

How to default a Person FormField in New Form Template?

Without using any addons, has anyone discovered a way to set a default value for a <SharePoint:FormField> where the field is a Person/Group? We'd like to default a field on our newform to the ...
0
votes
0answers
9 views

Creating Variation Labels using csom not creating Variation Hierarchy

I have created variation labels using csom code. Labels are getting created, but after that variation hierarchy is not created. Even if I run the Variation Hierarchy Timer job manually, it's not ...
0
votes
1answer
30 views

Get ListItemID using ExecuteQueryAsync function

In the code below I can get the value of the ListItemID of a List. var siteUrl = 'https://company.sharepoint.com/sites/demo'; var t; retrieveListItemsInclude(); alert("after"+t); function ...
0
votes
1answer
31 views

Writing sharepoint CSOM applications best practices

What is the best way to write sample snippets of code Visual studio 2012- Create a SharePoint App project. Issue :-Every time you need to query the list on the host web you need to query the ...
0
votes
1answer
24 views

Powershell deleting/showing list items csom

I am trying to delete items in a list using CSOM powershell but it doesn't seem to work at all, Here is my code atm which is trying to print out the title of my list items but this isn't working ...
0
votes
0answers
9 views

showing data in custom asp.net from sharepoint 2013(document libs/lists)

What would be best approach to show docs or list in an asp.net page from SharePoint 2013 on premises? I would like to show documents and lists. Which one is better CSOM,Odata? With document libraries ...
1
vote
0answers
16 views

Editting a Search Results Web part changing the result source CSOM

I am doing some CSOM powershell to edit a search results web part and change the result source. Don't really know where to start with this as I am new to the world of CSOM powershell. Any help would ...
1
vote
0answers
2k views

The remote server returned an error: (401) Unauthorized. Using CSOM in ASP.NET MVC 4

I'm trying to pull data through SharePoint 2013 BDC Models that I have imported from my ASP.NET application which works fine when I run either locally on my machince or locally on the server. ...
0
votes
1answer
20 views

Using the SharePoint 2010 CSOM to Delete a list

I am trying to delete a list that contains documents using the SharePoint 2010 CSOM and am using the following code: //find the 'Project Documents' library and delete it var list = ...
0
votes
1answer
20 views

User or group column is populated with incorrect values when adding data from CSOM

I am working on a console application that updates list items using managed CSOM. I have a user or group column in this list that can contain multiple values. Now, I am using below code to update the ...
0
votes
1answer
20 views

Remote App using CSOM against SP2013 with Claims

We have a few applications that currently use managed code CSOM against SP2010 - think of SharePoint as simply a large file store. The UI is not used at all and all the functionality for the remote ...
1
vote
0answers
19 views

Get all social tag terms for documents in a document library

For the project I'm on, we have a component for integration between Dynamics CRM and SharePoint 2013 that's been developed offshore, and I'm currently working on improving the performance of the ...
0
votes
1answer
31 views

Deleting Search Nav node in powershell CSOM

I have created a script that adds my search nav to my search site but it is still left with what was already there as out of the box. I am having trouble with finding how I can delete the nodes I ...
0
votes
1answer
22 views

How chould i get title where “Title characters contains input box then get the values”

i am trying to get the title if it contains the characters in an input box So first if the user types ABC, then get the titles that contains A,B or C $("#subSiteTitle").keypress(function () { ...
2
votes
2answers
54 views

Tag SharePoint pages with “I like it” tag programmatically

I need to tag a lot of pages with the tag I like it. Is there any way of doing it programmatically? (i.e. PowerShell)
0
votes
0answers
77 views

BCS Managed Client Code Get all method instances

When using the class Microsoft.BusinessData.MetadataModel.Entity entity; does anyone know how to get all the External Content type operation method instances so i can dynamically pass the value to ...
1
vote
1answer
62 views

Get all users based on a specific permission/role in .Net CSOM in SharePoint 2013

I want to get the list of all the users who have a particular role/permission on a site. For example, I need the list of users who have edit rights RoleType=Editor using .Net CSOM in SharePoint ...
1
vote
2answers
199 views

Setting value of Enterprise Keywords using CSOM

I have included the enterprise keywords column in my contenttype and list and I try to set the value using the managed CSOM. I just used the default already existing column so the column name is ...
1
vote
1answer
45 views

SharePoint 2013 CSOM add keyword to file

I need to the following thing and just can't figure out how to do it. Maybe you could help me. I uploaded a pdf file to a document library of a SP2013 with csom. Now i also want to tag the file using ...
2
votes
1answer
363 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(); ...
1
vote
0answers
33 views

Error when adding web part or app part via CSOM remote provisioning to SharePoint page: Specified argument was out of the range of valid values

Problem Adding a web part (or app part) via CSOM remote provisioning to a on-premise SharePoint web part page results in a Specified argument was out of the range of valid values exception ...
0
votes
0answers
62 views

Exception calling “ExecuteQuery” with “0” argument(s): "The remote server returned an error: (400) Bad Request. CSOM SP13

I'm trying to add a page to my search centre in sharepoint 2013. Trying out cSOM too. Here is my code, I am getting a bug Exception calling "ExecuteQuery" with "0" argument(s): "The remote server ...
2
votes
1answer
48 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 ...
0
votes
1answer
81 views

Reading a Term Set using javascript

I am trying to read a term set (Ideally I want it in tree order) but haven't figured out a simple way of doing that yet. So I have the below working about from the line where I am trying to read the ...
0
votes
1answer
423 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
1answer
577 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 ...
0
votes
0answers
15 views

popup div containing embedded media player [duplicate]

I am showing a popup within a div having unique ID and I placed a Close button on that div, on hitting of that button, div is hidden and hence player is made stop. This is working properly with mp4 ...
2
votes
1answer
110 views

CSOM powershell to update search navigation sharepoint 2013

I am wanting to write some client side powershell to update the search navigation on global search. I have found many examples of this with server side but none using client side. anyone with any ...
0
votes
1answer
25 views

Altering the “Who can view the membership of the group?” setting of a group through CSOM or Web Services (2010)

I was wondering if it's possible to alter a group's Who can view the membership of the group? setting from Group Members to Everyone through CSOM or through SP's web services. Right now I am creating ...
4
votes
4answers
393 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..
1
vote
7answers
124 views

SP.js file not loaded in a simple JSOM example

I am creating a simple example that demonstrates client object model using javascript. I have ceated a simple JS file in Visual Studio and an aspx page using the SharePoint Designer. I have used ...
-1
votes
1answer
63 views

can i use this to create Document sets dynamically in a doc lib - SharePoint Online

I would like to create a document set dynamically using a filed from an excel sheet. Can I use Client side (CSOM) and powershell for this. Thanks in Advance
0
votes
1answer
67 views

JSLink, implementation of sp.runtime.js

I want to override my field using SP.Guid.newGuid(), but SharePoint loading my custom js file earlier than sp.runtime.js file. There are best practice for implementation of sp.runtime.js in this ...
-1
votes
1answer
43 views

Programmatically set navigation settings in SharePoint 2013

When Going to Site settings>Navigation for a subsite i want to modify The Structural Navigation:Sorting to be the first value (Sort automatically) I am trying to do this with my code: ClientContext ...
1
vote
1answer
35 views

Use GroupBy on ListItemCollection using CSOM

I am trying to do a GroupBy on a bunch of items that I have retrieved using CSOM and when I try do a foreach loop to go through them I get method not supported exception. List contactsList = ...