Tagged Questions

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

learn more… | top users | synonyms

0
votes
0answers
15 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
27 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
13 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
30 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
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
18 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
15 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
7 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
15 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
11 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
54 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
26 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
43 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
22 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
30 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
49 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
37 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
22 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
47 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
38 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
16 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
24 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
34 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
69 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
50 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
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
21 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
36 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 ...
0
votes
0answers
25 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
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
39 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
1answer
56 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
27 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
11 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 ...
0
votes
0answers
50 views

SP2013 - The object is used in the context different from the one associated with the object

I have a function that initializes a custom taxonomy control, as below (not in myControl.js) function initMyControl() { if (something is true) { var context = new ...
1
vote
2answers
39 views

How to retrieve a file by UniqueId in any List subfolder

I would like to get a file by UniqueId inside of a List. I am not guaranteed which folder the file will be in so I'm using the List.GetItems call and using a CAML query to only pick the file that ...
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
0answers
21 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 ...
1
vote
2answers
67 views

How to itetrate through files in a document library

I've been creating a provider hosted app and I'm stuck at retrieving Documents titles using CSOM C# my code is as follows. var spContext = ...
0
votes
1answer
132 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 ...
3
votes
1answer
72 views

Background tasks/timer jobs in SharePoint O365 with Azure provider-hosted app

I am building a provider-hosted app for SharePoint (O365) which is hosted in Azure. I do all of my logic through CSOM, more specifically using an MVC web project. At the moment, I have some branding ...
1
vote
2answers
65 views

Javascript always failing

I am busy writing some javascript to take a list of selected documents and do some processing on a list with each document in Office365. I am getting a strange error when the code tries to load the ...
3
votes
1answer
67 views

Checking CSOM people editor value

How can we check the user entered key in Client people editor is user or group? I have created a people editor in CSOM. I can save the value to the list successfully. But before saving i need to ...
-2
votes
1answer
53 views

SharePoint WCF SOAP, Rest, AJAX

I need to know the following things: 1) How is SharePoint used with WCF, REST and SOAP. Any helpful links will be really appreciated. Thank you.
0
votes
0answers
33 views

Getting the version history of a list item

I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something
0
votes
0answers
29 views

Missing SharePoint Online Client Tenant Silverlight dll

I'm trying to find the microsoft.online.sharepoint.client.tenant.silverlight.dll to develop a Silverlight tenant control solution but I can't find it any where. It is mentioned specifically in the ...
0
votes
0answers
11 views

CSOM URL path length restrictions same as normal user operations through a browser or different?

I know SharePoint has a limitation of unencoded URLs of about 256 code units. With small deviations based on how something interacts with SharePoint. As I work with Japanese file names, and sometimes ...
1
vote
0answers
21 views

Possible to change view style client-side?

Is it possible to change the view style (for example to Shaded) client-side (using CSOM, JSOM or web services)?
1
vote
1answer
28 views

How to remove recent node from quick launch using CSOM?

Code looks pretty straightforward but fails with below exception "The collection was modified. Enumeration operation may not execute."} private static void ...