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

learn more… | top users | synonyms

0
votes
0answers
12 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
44 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
59 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
39 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; ...
0
votes
0answers
17 views

Improve performance of generating thumbnails from pdf file

I have developed provider-hosted App and used Aspose.pdf (code below) to convert PDF files stored in document library to jpg files, so i can view it as thumbnails. I have issue in performance as I ...
2
votes
1answer
31 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
50 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
30 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
26 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 ...
1
vote
0answers
19 views

Creating a navigationnode of type Link from csom

I have a publishing enabled web that I want to add a link to, not a heading. var node = web.Navigation.QuickLaunch.Add(new NavigationNodeCreationInformation { Title = "Dokument", Url = web.Url + ...
0
votes
2answers
19 views

Is there a place to upload open source code for others to utilize?

I am very new to SharePoint just began working in it within the last month. I have been creating Taxonomies within the Managed Meta Data for a company website, and I have run into a lot of issues with ...
2
votes
0answers
18 views

SPListItem.BackwardLinks equivalent in CSOM, JSOM, or REST?

In the Server API for SPListItem there is a property called BackwardLinks that returns a collection of items that link to the item. I don't see the same property in CSOM, JSOM, or REST. Is there a ...
0
votes
2answers
28 views

I am planning to use GetFieldValueAsHtml in CSOM world and I am not able to find that method for FieldMultiLineText class

I am planning to use GetFieldValueAsHtml in CSOM world and I am not able to find that method for FieldMultiLineText class Let us know how to get this method in the CSOM world. But that method is ...
1
vote
0answers
39 views

Setting SPWeb.AlternateCssUrl via CSOM or JS

According to this Microsoft Office 365 Blog post the SharePoint CSOM (.Net, REST, JS) has been enhanced to support setting SPWeb.AlternateCssUrl: ...
1
vote
4answers
42 views

CSOM programming - for regular user

Should I as a SP Admin be concerned about when a professional contract developer uses CSOM? I just want to make sure the code is good. What is your opinion?
3
votes
2answers
144 views

Creating variation labels using CSOM in sharepoint 2013

Can anyone tell me how to create variation labels using CSOM?
1
vote
0answers
11 views

How do I create a page in a SharePoint host site from azure hosted app?

When I run the following code from azure with the app permissions 'Full Control' I can successfully create a page in the parent SharePoint(online) site. If I change the permissions to 'Manage' at site ...
1
vote
0answers
24 views

How to auto generate parent MMD columns based on child MMD columns?

This is the structure of one of my Term Sets. I have a Site Column called Record Type (Deeds, Agreements, Permits) I have a Site Column called Deed Type (D1, D2, D3) I have a Site Column called ...
0
votes
1answer
97 views

Remove role from group programmatically, CSOM

I would like to remove the contribute permission level from a specific group. I use this code: Group group1 = web.SiteGroups.GetByName("StudentsKls11"); RoleDefinition readDef = ...
0
votes
1answer
36 views

check if list has already been created

I've written a bit of powershell for creating a list just wondering how add say an if statement to check if its already been created. In Client side not server side here is my code : param( ...
1
vote
1answer
174 views

How to use CSOM/Powershell to update list item(s) in O365 from CSV

Not a programmer, but need to get a job done. Using Powershell and CSOM I've found examples and been able to import CSV into a list as new items. That is working. Here is a code snippet I'm using ...
2
votes
1answer
88 views

Create list and add a choices column to default view

I would like to create a link list, and then add a choice column (Field) with two choices to the default view. Using the following code i am able to create the list and add a column (Field) to the ...
1
vote
3answers
86 views

Add items to list programmatically

I would like to create a menu from the listtemplate Promoted Links, with several tiles. I use the following code to create the list, and create new list items: ListTemplate listTemplate = ...
1
vote
0answers
42 views

Open Quick Launch link in new window (CSOM)

How to add a link opening in a new window/tab to the quick launch menu using CSOM? There is some discussion about the server-side here and here but they are dealing with the Properties collection of ...
0
votes
1answer
44 views

Based on URL how to set Global navigation nodes (CSOM) node as active - javascript

I want to use the same navigation everywhere (mysite, teamsites ..) So I'm fetching the (managed navigation) global navigation by csom in the masterpage. The global navigation is only going to show ...
2
votes
2answers
28 views

SharePoint group not visible

I created a new SharePoint group using UI. I do not see the group using: $web.Groups | select Name Why? (I need to access to the group by CSOM but the group is not found)
0
votes
0answers
21 views

How can I return differences between versions and access properties that changed?

i have a list in SharePoint 2010 that has fields "title,count" .one of the fields (count) possible to change. I FROCE TO USE CSOM CLIENT SIDE OBJECT MODEL ... NO SHAREPOINT.DLL BUT ...
0
votes
0answers
46 views

SharePoint 2013 Event ID 3760 SQL Database ' ' on SQl Server Instance ' ' not found

I am running into following error message into my Event Viewer in the Sp2013 Web Server. Site is stable and no issues realted to db. But repeatedly it is throwing following errors: Log Name: ...
1
vote
2answers
87 views

Does ExecuteQuery have a cache/timeout/etc?

I wasn't sure how to phrase the title, forgive me. I'm running into an issue with the CSOM (SharePoint 2010, but likely in 2013 as well), where my initial ExecuteQuery() statement takes upwards of 20 ...
0
votes
0answers
13 views

Activate Site Collection feature in SharePoint CSOM

I want to activate the site collection features by making use of CSOM in code behind. Kindly do the needful ASAP. Thanks in Advance, Pravin Dhulap
0
votes
0answers
17 views

Stuck on designing library with folders for each User

I have a requirement to create an HR document management structure, but I'm a little stuck on how best to design it. Environment: SP2013 Standard... they don't want anything that would make an ...
0
votes
1answer
73 views

What is the purpose of Microsoft.SharePoint.Runtime.dll in CSOM?

I know we need to use Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime dll's reference in .NET managed CSOM application development. But can someone help me understand why we have ...
0
votes
0answers
59 views

Sharepoint 2013 List (Parent - Child) using CSOM - Need ECB menu in Parent Tasks

I'm trying to build a feature in SharePoint 2013. Scenario -- I have 2 lists.. List one -> Contain all projects List two -> contain project related tasks. I'm binding custom image on Project ...
1
vote
1answer
66 views

NavigationTerm.GetWebRelativeFriendlyUrl() returns value using SSOM, but returns NULL using CSOM

I'm using Managed Metadata Navigation and I'm trying to access it using CSOM. The problem I'm having is that I can't get the friendly URLs for the terms. If I run this code using the Server Side ...
0
votes
1answer
43 views

People search using CSOM API

I am using CSOM in API. I used following code for content search in documents and now want to integrate People search which can search users from sharepoint website using CSOM. ...
0
votes
1answer
32 views

Get User Properties By Id

I am having trouble finding documentation on how to query for user properties via JSOM or CSOM using a SP UserID. I must be missing something because SharePoint returns an ID for the user involved in ...
1
vote
0answers
101 views

Problem storing SharePoint context in Provider hosted app hosted in a azure website

I created a provider hosted app, which I want to deploy in a azure website. The problem that I'm currently facing is that I don't have a SharePointContext after postback. I'm using the default way to ...
1
vote
1answer
73 views

SP O365 uplaod big file via CSOM

Hi I try to upload large files (900 MB) to SP online (actually the OneDrive Business) but seems to follow SP style. Try this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
0
votes
1answer
54 views

Identify if a Library item is a folder or not in CSOM

I have Library on which I have created a ribbon button. On click of the button I am trying to identify if the selected item is a folder or a file. below if the code snippet that I am using: var ...
0
votes
3answers
36 views

In managed .NET CSOM, why do we have to load list to get items when we are already loading the web?

We are using managed .NET CSOM. We are loading the web. But when we try to fetch list names using web.lists, we get error. To resolve we have to load web.lists. Why do we have to load list to ...
0
votes
2answers
33 views

Inconsistent ExecuteOrDelayUntilScriptLoaded(function () behaviour in my pages

My users are reporting some strange behaviour with some pages created with the same custom layout pages and custom master page in a sp2013 publishing site Essentially, I have function referenced in ...
0
votes
1answer
48 views

What governs the decision to use server object model or client object model or javascript object model or REST?

What governs the decision to use (in SharePoint 2013)?: server object model (ssom) client object model (csom) JavaScript object model (jsom) REST
1
vote
2answers
69 views

Can we count the list items by group using Listdata.svc in SharePoint 2010?

I want to display a dashboard based on the SharePoint list items, can we get the items count by group using Listdata.svc? Could use the below query to get the count for a group ...
0
votes
1answer
84 views

Hiding the toolbar of a Listview webpart through CSOM

I recently successfully added a web-part to the frontpage using the method from Add Document Library XsltListViewWebPart using CSOM or web services However, it seems impossible to disable the toolbar ...
0
votes
1answer
66 views

Setting value of Enterprise Keywords using CSOM

I have included the enterprise keywords column in my contenttype and list and I try to set the value using the managed CSOM. I just used the default already existing column so the column name is ...
0
votes
1answer
115 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
0answers
35 views

Create Calendar powershell CSOM

How would I go about creating a calendar in powershell using CSOM. I have created a custom list before, using this : Add-Type -Path 'C:\Program Files\Common Files\microsoft shared\Web Server ...
0
votes
1answer
61 views

SharePoint2013 Add folder/sub folders to document library from outside SharePoint environment

My requirement is when a button clicked in my application(hosted on a different server), need to check folder exists with the named supplied. If not exits, able to create folder and sub folders in a ...
3
votes
1answer
53 views

change NavigateForFormsPages value to true using CSOM

I'm searching for a way to change NavigateForFormsPages property using CSOM but no luck till now. Anyone has idea to do it using CSOM
0
votes
1answer
32 views

CSOM Client Context Error

I am writing some javascript just to retrieve some simple properties. I have added a script editor webpart to the page and added simple javascript to makesure I can access the client context of the ...