Tagged Questions

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

learn more… | top users | synonyms

1
vote
0answers
7 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
12 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
28 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
16 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
29 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
22 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
12 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
7 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
24 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
32 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
0answers
10 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
16 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
48 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
74 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
63 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
59 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
52 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
38 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
25 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
25 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
10 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
16 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
18 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 ...
0
votes
0answers
21 views

Is it possible to use UserProfileService to return all current Birthdays?

I am new to the UserProfileService web service, the url based service accessed through /_vti_bin/userprofileservice.asmx In reference to writing a JavaScript CSOM web part, I am wondering if it's ...
5
votes
2answers
565 views

How to get List by Url using SharePoint 2013 CSOM

SharePoint 2013 CSOM API contains the following methods for accessing List object: ListCollection.GetById method - returns the list with the specified list identifier ListCollection.GetByTitle ...
0
votes
1answer
51 views

How to create a group in a subweb using CSOM?

I need to create a site with broken permission inheritance. Then I need to create a Members group with contribute access and add people to it. The following code adds the group to the site ...
2
votes
0answers
47 views

JSOM working in Chrome but not IE

I am learning the Java CSOM at the moment and have written a little program that creates a sub-site and assigns a masterpage to it. I am embedding all the code directly on the page. I am finding ...
1
vote
0answers
46 views

Set Task list EnableAssignToEmail in CSOM

I would like to set the EnableAssignToEmail bit on a task list via CSOM after a list is created dynamically. I have found a way to do this in Powershell and in code using SPList: Add-PSSnapin ...
1
vote
0answers
69 views

Create list using C# CSOM in a subsite on Office SharePoint O365

We have a SharePoint 2013 Provider-Hosted App using C# CSOM that has been deployed to a Developer site under the root site. One of the requirements of our app is that it should be able to create lists ...
0
votes
1answer
62 views

SharePoint 2013 - Enumerate all subsites using CSOM and authentication code flow

I'm trying to enumerate all sites that a user has access to underneath a given site in sharepoint. For example, given I've authenticated to https://offtechsmith.sharepoint.com/teams/teamsite, I want ...
0
votes
2answers
97 views

SP 2010 CSOM Javascript: serverRelativeUrl fails

I have a custom html and javascript file housed within a document library of a subsite: http://teamsite/project/testing%20site/shared%20documents/test.html and ...
0
votes
0answers
35 views

Sharepoint 2013: How to get all Lists a user has access to from Provider Hosted app using CSOM

I'm trying to get a list of all Lists that a user has access to in a given SharePoint 2013 site. Specifically right now I'm testing against a SharePoint Online site and authenticating via ...
0
votes
0answers
46 views

How to retrieve the breadcrumb with REST Api

All, People who have worked on SharePoint 2007 and SharePoint 2010 will notice that breadcrumb is missing in the SharePoint 2013(BTW, Why Microsoft want to remove it in the SharePoint 2013?). But I ...
0
votes
2answers
36 views

Sharepoint 2013 O365 App cannot create a list in a sub site

I have a SharePoint 2013 app that can create a list in the site that it deploys too but it cannot create a list in a sub site where the app has not been deployed and trusted. Is there any way to get ...
0
votes
1answer
48 views

Pure clientside webpart for Office365

I want to build a pure clientside (angular) webpart for my own environment. I want to have as small of a footprint as possible (So please no app domain or sandboxed solution). It's necessairy this ...
0
votes
2answers
58 views

Search documents contents using SharePoint 2013 REST API or CSOM

I'm wondering if there is a way to query the actual contents of the document using the REST API or using the CSOM and CAML from an ASP.NET application? I remember in a previous job that we used FAST ...
1
vote
1answer
131 views

SharePoint 2013: Creating custom list in SharePoint using CSOM

I'm having a difficult time creating custom lists using the SP JS API. Here's what I'm attempting to do: var lciTasksList = new SP.ListCreationInformation(); lciTasksList.set_title('ProjectTasks'); ...
1
vote
3answers
283 views

Programatically Modifying SharePoint List Item-level permissions using CSOM

I have a SharePoint 2013 (on-premises) document library named “Reports”. It inherits the parent site’s permissions (by default). It has a column named “AssignedTo” of type People or Groups (mandatory ...
0
votes
1answer
38 views

Add URL to the Taxonomy Terms Created using CSOM

I have been successful in creating terms in the term store using CSOM code. But I have been not been able to set URL for those terms. Small code snippet - TermSet termset = ...
0
votes
0answers
17 views

how can access indicator status with client side object model SharePoint 2010 with c#

i want to access indicator status in kpi list in sharepoint 2010. using (ClientContext context = new ClientContext(siteUrl)) { context.Credentials = new ...
0
votes
1answer
60 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
22 views

Issue in retrieving All users from a Person or Group type column using C# COM for each List Item

I have a requirement like this: There is a SharePoint 2013 document library, say, MyReports. MyReports has a column "AssignedToUsers" which is of type Person or Group (multiple selections enabled). ...
1
vote
1answer
102 views

Version Conflict issue with JavaScript Client Object Model code

I'm running into an issue where I'm trying to modify a metadata field on a document within a document library. My code, will check out the document, update the metadata field and then check in the ...
4
votes
2answers
79 views

Hide document library using CSOM

I want to prevent users from accessing some document libraries. I have used the following code but it didn't work, Any solution? doclibraryinstanse.Hidden = true; doclibraryinstanse.Update(); ...
3
votes
1answer
71 views

Determine “normal” Users from User Collection loaded with CSOM (provider-hosted App)

In my provider-hosted app I load the UserCollection from SharePoint by CSOM (Client Side Object Model), like this: UserCollection users = web.SiteUsers; ...
2
votes
1answer
60 views

Check if a document set exists

I'm trying to determine whether a document set exists - if it doesn't I'll send it off to another function to create but I'm not getting the correct value back from my query. I think it has to do ...
0
votes
2answers
183 views

How do I move files from one document library to another using JSOM?

I have two document libraries on the same web, and am wanting to move the files from one to the other using JSOM/CSOM. Can anyone please shed some light on how to do this? Thanks
2
votes
1answer
34 views

Accepted way of checking for SharePoint CSOM in JavaScript?

What I'm trying to do is build a dual purpose JavaScript that might run inside or outside of SharePoint, so I need something like this: if(SharePoint CSOM Exists) { //Do a bunch of stuff involving ...
0
votes
2answers
76 views

Cannot update list item properties Server Object Model in context of SP, can update via CSOM

I am trying to update a SPListItem metadata properties after inserting this document into a document library. Fortunately though the CSOM, this is quite easy: private void ...