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

learn more… | top users | synonyms

1
vote
1answer
31 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
37 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
19 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
83 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
14 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
24 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
54 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
57 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
65 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
24 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
53 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
27 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
20 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?
0
votes
0answers
7 views

Check DateRange free Date and time in Calender

I am trying to see if there is already in the calender we say from 2014-11-28 10:00 to 2011-11-29 10:00 an event then displays 5 days before startdate and 5 day after EndDate, display to the user the ...
0
votes
1answer
10 views

Asyncronous calls in Loop not working as expected

I need to iterate through site's doc libraries, their content types and their fields and display the results. When looping through the doc libraries, in the success call back, I am always getting the ...
0
votes
0answers
5 views

Retrieve all Calender List and display in Select Option Csom

Hi i am trying to retrieve all lists of type "Calender" and display it in an Select Option, i am using an SP-hosted app. $(document).ready(function () { getListCalender = ...
0
votes
1answer
75 views

Remove SPO Site Mailbox using CSOM, REST, anything

How do I remove site mailbox not manually? What I have tried so far: Powershell remove-msoluser and remove-mailbox don't remove the app from SharePoint Online site. If you had a working mailbox and ...
0
votes
2answers
32 views

How to get app url?

I'm creating a javascript app for sharepoint, and I need to get the url of this app. The same url that is in content of site. I need another solution because when i try to simply reload the page with ...
0
votes
0answers
15 views

SharePoint 2013 Apps adding a Document library

Hi I am building an SharePoint hosted app that will make crossdomain calls on host web. Now I tryinging out both CSOM ( which I am starting to hate ) and REST statements in my Javascript. It occurred ...
1
vote
2answers
110 views

How do I get the URLs of files attached to items in my list?

I'm using the CSOM to get my SharePoint list. I need to loop through it and get the URLs for the files attached to each item in the list. C#: SPContext spctx = new SPContext("news"); List news = ...
0
votes
0answers
78 views

How to properly cache, validate, refresh Access Tokens?

I'm a complete newbie to SharePoint Provider-Hosted Solutions and their authentication logic. My App is an ASP MVC Solution. I run many AJAX-Calls from Client-Scripts to my Controller to interact with ...
1
vote
1answer
246 views

Create a document in SharePoint Online using CSOM

I need to create several documents in my SharePoint Online library. I am using the following code to upload an existing file to a library: ctx.Load(ctx.Web.Folders); ...
0
votes
0answers
84 views

How do you get Group/Permissions information for a subsite (that breaks inheritance) on a SharePoint Online Site Collection using Powershell

tl;dr version: Ultimately I can get a list of all Groups for a given Site Collection, but I can't tell which groups give access to which sites. Which is to say that, for a given subsite that has ...
0
votes
3answers
268 views

update document properties in library using csom

in the code below I am uploading a document to a library. This part is fine but the problem is with setting the properties of that document. I have not been able to find an example that does that. I ...
-1
votes
1answer
39 views

Remove User from Security Group Using JSOM

I'm trying to remove a user from a SharePoint 2010 group using JSOM, but not having much luck. I've been trying to adapt the script on this page - ...
0
votes
0answers
41 views

Getting information from previous versions of a SP list using CSOM

I have been looking through a large amount of forum posts related to this question, but people continue to either not elaborate on a solution or suggesting a solution that is for server side. I ...
0
votes
0answers
11 views

Filter WebCollection using a List of Urls

I have a List that holds the URLs of the Subsites I want to retrieve. I need to use that as a filter (optimize the query) so when I query the SharePoint it only returns the webs I want to work with. ...
0
votes
1answer
21 views

Possible to load sitecollection without direct reference

I've followed one of the tutorials to use CSOM (JavaScript) to work on a list. I need to template the site and create new sites from it. But in my code (CEWP and txt file) I have a hard coded link. ...
0
votes
0answers
21 views

How do you check if a Web is an AppWeb using CSOM?

With CSOM, how can I test if a web is the container for a SharePoint hosted app, equivalent of SPWeb.IsAppWeb?
1
vote
1answer
45 views

Deploy Sharepoint Provider hosted App through CSOM

I see that SharePoint is exposing below CSOM Methods. •Web.LoadAndInstallApp method - Uploads and installs an app package to this site •Web.LoadAndInstallAppInSpecifiedLocale method - Uploads and ...
2
votes
1answer
56 views

Activate “Managed Metadata Navigation” feature using CSOM

We're trying to automate a Site Provisoning process but cannot figure out how to activate the Managed Metadata Navigation feature using CSOM. This is the code we're executing: var clientSite ...
1
vote
1answer
133 views

Retrieving web part ID (GUID) with SharePoint REST API

I need to get the ID of a web part on a page before I have redirected the browser to the page. The reason for this is that I need to update a field value that contains web part settings, which are ...
0
votes
0answers
68 views

Querying users in SharePoint Online error

I need to retrieve the normal, non-system users of one of my SharePoint Online site collections. For now I am using a little awkward if (uss.LoginName.Contains("i:0#.f|membership|")), after I have ...
0
votes
1answer
77 views

Error Unable to get property 'getEnumerator' of undefined or null reference

Getting the following error when running my script: Unable to get property 'getEnumerator' of undefined or null reference My code : NBSFeedbackEditInbox.FeedbackRemove = (function () { var ...
0
votes
2answers
42 views

client context not initialized error

I have a client context not initialized error and I have no clue how to fix it I feel like I have tried everything. Would appreciate some help Here is my code : Code that gets the list: var SFW = ...
0
votes
0answers
124 views

CSOM not working for different users. “No credentials are available in the security package” returned

I have an ASP.NET MVC 5 application running. It reads and feeds most of its data from a SharePoint portal (but it is not running as a SP App, but independently). Since performance is not a critical ...
0
votes
1answer
66 views

CSOM and JSOM when to use

Hi Just a quick question on when to use CSOM and JSOM. I've created a page using SPD and want to retrieve list items. I assume I should use JSOM for this however can I use CSOM code also? If I ...
0
votes
1answer
62 views

Issue while deleting a list using CSOM in a SharePoint App

I am having this weird issue while deleting a list using CSOM. My SharePoint App has 2 buttons - one to create a list and the other to delete the created list. When the app loads for the first time, ...
0
votes
0answers
63 views

How to retrieve BDC Identity from External List programmatically?

I need to do a lookup on an External List (in SharePoint Online - Office 365) to retrieve the value of the BDC Identity. BCS is talking to an OData web service. (I'm not a Visual Studio guy), so ...
1
vote
1answer
93 views

Problem with Javascript Object Code and jQuery Promise

I know that I am just mising something, but here is the issue: I have created a helper function: var RADON = window.RADON || {}; RADON.csom = RADON.csom || {}; RADON.csom.GetLookupData = ...
0
votes
2answers
199 views

how to get list items fields using CSOM

I have to get other column value of list item whose "Title" matches with entered string in text box from the page. I am using CAML query to match "Title". But in Success function, how to get that ...
0
votes
0answers
34 views

Compare list items with text value entered

I have one list with 3 columns (Title, Department, Contact person). I have one input text field & button to submit on the page from where users will type "Title" (Application title) and click on ...
0
votes
1answer
69 views

CAML Query works in U2U CAML Query Builder, but not SharePoint

I built a CAML query using U2U CAML Query Builder and it works when I execute it in the builder, but when I go to JSOM in SharePoint, I get the entire list and none of the filters from the query work. ...
0
votes
1answer
44 views

Formatting CSOM output

I have a list and using CSOM to surface information. However all the examples I found show an alert box or Gridview to output the information. I would like the list items to show in a tabular form, ...
0
votes
1answer
290 views

Access denied to upload aspx file to document library in SharePoint Online (O365) using CSOM

I am trying to create a "Link to a Document" programmatically, similar as explained here: Create a 'Link to a Document' in a SharePoint Shared Document List using PowerShell Document library is ...
1
vote
2answers
67 views

Reference problem when trying to replace a master page file while keeping the original in CSOM

I have some logic that does some custom file provisioning in CSOM. It basically tries to upload various files located on a provided-hosted (Azure) site to mapped locations in the Sharepoint host site ...
1
vote
0answers
15 views

SharePoint document library Multi User field set only odd position users in case of Office documents

I am trying to set users in Multi-User field of document library documents by using CSOM. It works properly for normal documents(non-office docs) but for office documents it is setting only odd ...
0
votes
1answer
32 views

Updating Person Field javascript error

I am creating a new list item using CSOM. When I try updating a Person field, I'm getting a error saying my function is undefined Uncaught ReferenceError: createListItem is not defined it ...