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

learn more… | top users | synonyms

0
votes
0answers
66 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
0answers
22 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 ...
1
vote
1answer
44 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
45 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
44 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
0answers
21 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 ...
0
votes
1answer
39 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
35 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
65 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
1answer
27 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
23 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
48 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
28 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 () { ...
1
vote
1answer
116 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
0answers
19 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
75 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
1answer
147 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 ...
1
vote
1answer
80 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
2answers
81 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
1answer
38 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 ...
2
votes
1answer
185 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
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 ...
1
vote
7answers
207 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 ...
0
votes
1answer
76 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
144 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
-1
votes
1answer
68 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
48 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 = ...
0
votes
1answer
62 views

Get List Item details from the changelog in PowerShell

I am trying to manage a changelog in a Sharepoint Online custom task list with Powershell and CSOM. I can get changes in a list from the below code and retrieve details like Update type and Update ...
1
vote
1answer
126 views

How to move/copy a document set via JavaScript CSOM

Could somebody give a JavaScript CSOM example of how to move/copy a document set from one document library to another? The document set has a derived content type with a list of metadata, and it ...
2
votes
1answer
48 views

Listing all users and their personal site in SharePoint Online

I would like to get a list of all users and their personal sites (mysites). (This is supposed to run on SharePoint Online from an app or a timer job.) I have tried all day but I can't get past the ...
1
vote
1answer
109 views

Major Differences between CSOM and SSOM [duplicate]

I know the differences between client side and server side scripting on a web application. But when it comes to SharePoint what exactly means client side and server side?
0
votes
0answers
16 views

tenant.getsitepropertiesbyfilter - what is format of the filter expression

using CSOM. trying to return all site collections that have a custom property where the property is named "abc". tenant.getsitepropertiesbyfilter appears to be the right method, but I cannot ...
1
vote
1answer
39 views

JSOM - ListItem from 'GetFileByRelativeUrl' returns System.ArgumentException

I'm trying to retrieve the corresponding ListItem from a page layout in the master page gallery using JSOM. I'm using the same approach that Vadim provides in this question, JSOM - get listitem by ...
0
votes
1answer
33 views

How to register a new docicon/progid using CSOM/SharePoint Client object model

I know how to register a new file-type icon in SharePoint 2013 by modifying docicon.xml, but is it possible via any sort of web-based API? Specifically I'm trying to do it for a SharePoint ...
0
votes
0answers
12 views

Get date before and after and query out free dates on range

When double booking in calender, the user get prompted to an dialog where Current day and +1 och -1 on day and then display the free dates, doing all this code wihout +1 om fromTime, and -1 on toTime, ...
1
vote
1answer
37 views

Keep getting correlation-id errors on Lists when creating SharePoint online site using CSOM

I keep getting correlation-id errors on all Lists when creating SharePoint online sites using CSOM. I am using example http://www.vrdmn.com/2014/03/create-site-collections-with-csom-in.html. ...
0
votes
0answers
50 views

An admin user cannot perform context.ExecuteQuery()

In the company we are running multiple scripts against multiple SharePoint Online tenants. They all involve context.ExecuteQuery() at some point. No-one has any issues apart from one user on one ...
0
votes
0answers
21 views

How to retrieve items from Camlquery

How can I retrieve items from the date range below: 2014-12-07 08:00 to 17:00 2014-12-08 08:00 to 17:00 2014-12-09 08:00 to 17:00 With my query right now I am receiving 2014-12-07 08:00 to ...
0
votes
1answer
148 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
0answers
16 views

Retrieve items from calender List only get first item

I am trying to get all items from my calender list i want to get EventDate and Enddate, here is my code, function onQuerySucceeded() { var startCon = listItemCustom + "T" + "08" + ":00" + "Z"; var ...
0
votes
1answer
31 views

Why is there a delay in Actual Permissions when adding a user to a SharePoint group with CSOM

I have site that has unique permissions. I have a SharePoint group that has permissions for that site. If I add a user to the SharePoint group through the SharePoint UI, the user can immediately get ...
0
votes
1answer
74 views

Loop true list using csom

How do i loop true, items in calender list in SharePoint, right now my code only displays the first value from the list and not the second, Can someone help me? function onQuerySucceeded() { var ...
0
votes
1answer
98 views

CSOM And FieldURLValue Error

I am trying to set a URL Field to update the Description and every time i run this ClientSide (via Powershell) I get the following error Exception calling "ExecuteQuery" with "0" argument(s): ...
2
votes
2answers
97 views

Hide List Content Type via CSOM

How to programmatically (using CSOM/JSOM) uncheck the Visible checkbox for a content type: so that the content type (Document Set above) is not anymore visible in FILES > New Document: In order to ...
0
votes
0answers
5 views

Unable to set collListItem or nullreference

Here i am trying to get the items from the dates between 8-17 on the date 12-04 The result works fine, I am trying to do the same using an SharePoint-Hosted app, Here is my code, it takes the ...
2
votes
1answer
39 views

Is there Machine Translation Service in Office365?

Does SharePoint with Office 365 have Machine Translation Service? Can it be turned on? I created small app, based on MSDN code sample, and I'm trying to create translate job for document in my ...
0
votes
3answers
66 views

Query items from list between Time ranges

I am trying to view all items on time between 08:00 to 17:00, I get only one item count even if I have more? var fromTime = new Date(result); fromTime.setHours(8); var toTime ...
0
votes
0answers
30 views

Need to upload and download the files from SharePoint document library subfolder

Need to upload and download the files from SharePoint document library subfolder. To retive the files I used the “Scope=’RecursiveAll'”;. How to upload/ download the files from the sub folder ? ...
0
votes
1answer
29 views

How to get all items

this code i have only gets current item that are added, but i want to get all items that are created, ntext.executeQueryAsync( function() { var camlQuery = new SP.CamlQuery(); ...
0
votes
0answers
23 views

CAML query to get all booked events in SharePoint calendar

How could I find all booked events in an SharePoint-Calendar based on DateTime? Any suggestions?