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

learn more… | top users | synonyms

0
votes
1answer
60 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
2answers
22 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
8 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 ...
1
vote
2answers
34 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
10 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 ...
0
votes
0answers
13 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?
0
votes
1answer
443 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
20 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 ...
0
votes
1answer
18 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 ...
0
votes
0answers
24 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
42 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 ...
0
votes
0answers
42 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 ...
-1
votes
1answer
16 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
20 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
9 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
18 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
12 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 ...
4
votes
3answers
310 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
1answer
138 views

Update folder name using REST API

I am using REST to update folder name via sharepoint apps. My code as follows: executor = new SP.RequestExecutor(appweburl); executor.executeAsync({ url: appweburl + ...
1
vote
1answer
55 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
1answer
111 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 ...
0
votes
0answers
35 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
53 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
2answers
25 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
1answer
47 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 ...
1
vote
1answer
55 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
1answer
371 views

Download Root level folders,sub folders and all files using CSOM C#

I have to Download Root level folders, sub folders and all files using CSOM and C#. I have to save the same folder structure and all file paths into the local system. Please provide the solution for ...
0
votes
1answer
40 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
26 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 ...
0
votes
2answers
46 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
1answer
86 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 ...
0
votes
0answers
17 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
29 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
35 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, ...
1
vote
2answers
52 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 ...
0
votes
1answer
17 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, ...
1
vote
1answer
503 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
428 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
506 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, ...
1
vote
0answers
12 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
22 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 ...
0
votes
1answer
42 views

Getting (403) Forbidden.Error for another ClientContext

using (ClientContext tenantContext = new ClientContext("https://site-admin.sharepoint.com/")) { SecureString password = new SecureString(); foreach (char c in ...
2
votes
1answer
54 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 ...
0
votes
0answers
28 views

Upload aspx file to host web in App Installed remote event receiver (rest file upload)

I'm creating AppInstalled remote event receiver that should upload aspx file to host web library (library is also created in app installed receiver). If I set app permissions to Web:Manage I can't ...
1
vote
1answer
48 views

How do I connect to a specific site collection using CSOM and SharePoint Online

I cannot find anywhere to specify what site to connect to when creating a new app for SharePoint online. It seems to default to https://mysite.sharepoint.com, however, I want to retrieve lists from ...
1
vote
0answers
20 views

Determining Users on SharePoint website with API?

Was thinking about building an app part that enabled some level of in-app messaging to other users currently on the site (probably via use of websockets connections to each other). Is there any way ...
1
vote
1answer
65 views

Retrieve Multi-line Text Field with Append Changes in CSOM (Javascript)

I have been looking for an answer to this question all morning and i cannot find anything to point me in the right direction. We have several customizations to a SharePoint page which displays list ...
0
votes
0answers
28 views

Update Custom Field in Task Level Project Server using JSOM (PS.js)

Does anyone have javascript which updates the task level custom field? I just have the code with C#. I am trying to convert this code (below) to javascript and use it. DraftProject projCheckedOut = ...
0
votes
0answers
12 views

Edit list Email Alias via CSOM

I am trying to set a list's email alias via CSOM and can't seem to find a way to do it. I can do it in powershell via the .EmailAlias property and I can also set that same property if I were writing ...