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

learn more… | top users | synonyms

0
votes
2answers
39 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
1answer
70 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
46 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
166 views

Creating variation labels using CSOM in sharepoint 2013

Can anyone tell me how to create variation labels using CSOM?
1
vote
0answers
12 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
33 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
189 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
56 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
572 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
119 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
130 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
54 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
68 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
35 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
46 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
118 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
187 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
25 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
121 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
92 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
121 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
67 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
35 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
1answer
173 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
111 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
78 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
41 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
38 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
147 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
98 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
140 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
114 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
239 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
58 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
144 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
64 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
40 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 ...
0
votes
2answers
513 views

Undefined SP.ClientContext

I always get undefined on my SP.ClientContext.get_current() I have tried with this code: SP.SOD.executeFunc('sp.js','SP.ClientContext',runthiscode); function runthiscode(){ ...
3
votes
1answer
72 views

Access Denied on use of AppPrincipalManager

We are getting the following error Access denied. You do not have permission to perform this action or access this resource. when executing the following code AppPrincipalManager ap = ...
1
vote
0answers
85 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 + ...
0
votes
2answers
489 views

REST Adding New List Item

I am currently using office 365 and lots of REST queries to display data. However I am now creating my own forms using bootstrap and JQuery. However, how do I use REST to add the data to the list. ...
1
vote
1answer
54 views

Make a column unique powershell CSOM

How can I Enforce unique values: in powershell? Client-side as well not server-side Here is the code that I have : $ListInfo = New-Object Microsoft.SharePoint.Client.ListCreationInformation ...
1
vote
2answers
135 views

Getting regional settings in app part?

I am creating an app part working with dates. I need to show date by users regional settings as well as in SharePoint. SharePoint Page have _spPageContextInfo.currentCultureName, where is current ...
3
votes
2answers
73 views

Sharepoint 2013 .Net CSOM search across “All Sites”

I'm creating a new ClientContext: ClientContext clientContext = new ClientContext(targetUrl); When trying to do a simple search: KeywordQuery keywordQuery = new KeywordQuery(clientContext); ...
2
votes
1answer
266 views

Creating a view CSOM Powershell

How can I create a view in Powershell using CSOM This works in server side I am unsure how to do it in CSOM $viewQuery = '<Where><Eq><FieldRef Name="IsActive" ...
0
votes
1answer
394 views

Add field to list CSOM Powershell

I have written some code which adds a list client side in powershell : $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($url) $ctx.Credentials = $credentials $web = $ctx.Web ...
1
vote
1answer
190 views

groups.getByName(groupname) is undefined

I have copied some snippets of code from here to test if a user belongs to a certain group, I am using Sharepoint 2010, however I am getting an method is undefined error. I am making sure that sp.js ...
0
votes
2answers
201 views

How to get the count of list items using javascript?

I want to count the list items using javascript
2
votes
2answers
576 views

Create list from custom template using csom, c#

I would like to create a list based on a template (.stp uploaded to the list template gallery), it almost works with this code: ClientContext context = new ClientContext("<Your Site URL>"); ...