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

learn more… | top users | synonyms

0
votes
1answer
13 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
20 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
28 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
26 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
15 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
29 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
24 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
0answers
27 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
22 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
7 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
27 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
0answers
17 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
24 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
62 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(){ ...
0
votes
0answers
26 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
32 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
65 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
27 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 ...
0
votes
1answer
44 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
48 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
64 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
79 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
57 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
53 views

How to get the count of list items using javascript?

I want to count the list items using javascript
2
votes
2answers
108 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>"); ...
1
vote
1answer
62 views

SP2013 C# REST File upload

I'm working on a piece of software that uploads files into a given sharepoint directory from a remote location (ASP.NET MVC). I have everything working properly, uploading with CSOM when files are ...
3
votes
1answer
148 views

Change masterpage from Seattle to Oslo using CSOM, Sharepoint online

Using CSOM and c#, I would like to change the master-page from Seattle to Oslo. Can anybody help me?
0
votes
3answers
75 views

Get User Details From REST Data using CSOM

I am currently using REST to query a discussion board list. The results I am then displaying nicely in a table using bootstrap. We are using office 365. The REST query returns an authorID. How can we ...
1
vote
0answers
74 views

CSOM caml query list view lookup threshold

I have a list with about 15 managed metadata columns in it. Now I want to query that list using CSOM. I don't want to retrieve all the columns values so I limited the column values retrieved by using ...
0
votes
3answers
61 views

Add an app through CSOM

I'm trying to install an app on a site collection via CSOM code. First I'm getting the list from the appcatalog on the app catalog site collection. Then I'm getting the app-file as a listitem and ...
0
votes
2answers
57 views

Load more list items on scroll

I am showing the first 5 list items on the page (in one div). Div has vertical scroll bar. I want to show the remaining 5 items on when scroll goes down end. I am using CSOM to fetch list items. Any ...
0
votes
0answers
16 views

Filter ListView by Current User's City

I have a 2013 list view on a custom page. It is working with JSLink + all of the great OOB features. I have a city column in that list. How can I dynamically filter it based on the current user's city ...
0
votes
1answer
95 views

CSOM Javascript - when executing query on multiple lists getting error - SharePoint 2010

Is here any SharePoint expert, who can help me find out, why I am getting error on lists queries? I am trying to fetch data from multiple list asynchronously, but I am getting following error: The ...
1
vote
1answer
80 views

Update available page layouts of web using CSOM

Is it possible to update the available page layouts of a web using CSOM? In the interface you can change them by going to the site setting and then to page layout and site template settings, but I ...
4
votes
3answers
156 views

Set DateTime (utc) to listitem (CSOM, SP2013)

How to set UTC timezone to a listitem's DateTime field without executing query each time? This would be slow for many datetime fields and items: var utc = DateTime.UtcNow; var localTime = ...
0
votes
1answer
83 views

Create Next and Previous Paging Using Sharepoint List and SpServices

can anyone help me in Creating Next and Previous Paging for SharePoint List Using Sp-services With Client Side Template Binding . Below is the Code Which I was Using. $().SPServices({ operation: ...
0
votes
2answers
50 views

SharePoint Hosted App Code behaves different

This code is working if i dont use it in a app. But in a app its not working. The app is sharepoint hosted, and the list is on the same domain as the app. context = new ...
0
votes
1answer
40 views

Unable to system.string to system. guid - CSOM

I have a picture slideshow webpart which displays images from a particular library with a particular view. I want to change the webpart property - view using jquery. I have used CSOM to get the ...
0
votes
0answers
12 views

Get IconURL from Microsoft.SharePoint.Client.File object [duplicate]

I am using Microsoft.SharePoint.Client.File object by iterating through a FileCollection. The problem is that this object does not contain the IconURL property. Due to certain reasons, I can not use ...
1
vote
1answer
29 views

ICustomRouter interface >> CSOM or Server Side Object model

We are looking into a custom document route, and I know about the ICustomRouter interface. Can it be used in CSOM? The ICustomeRouter example here: ...
0
votes
1answer
28 views

How do I deep copy a library item to another library?

We have an outside document app (PCM) that has a nightly sync to our SharePoint server. All contracts in PCM are synced into SP then we change the PCM document to a link to SP. Recently, we have a ...
0
votes
0answers
10 views

Sites popularly used webpart/apppart

I am looking for a way to get according to the current user, the last 10 visited sites, or the sites with most hits. What would be the recommended approach to do this? Can I get this with the search ...
2
votes
2answers
199 views

Why does “sp.js” load only when I am editing a web part page?

I have created a page and would like to use some functions that require sp.js to be loaded, but it never seems to load unless I am editid the page (Site Actions -> Edit Page). Trying to find the ...
0
votes
1answer
48 views

Search Configuration Import CSOM

I'm trying to import a search configuration XML using a SharePoint App. I have check the following: The XML is correct. I can upload it manually. The code works using a console app, but not using ...
1
vote
1answer
63 views

Alternative to CSOM ListItem.get_item

The only way I know to load a sharepoint list via Javascript is to load it and on the current list item: var value = currentItem.get_item(columnTitle); I want to be able to load an item and on the ...
0
votes
0answers
33 views

Route documents to another site collection if approaching size limit

We'd like to have a Drop Off library look @ the current site size, and if it is approaching a limit, send the file to a different site within the site collection. It's kind of like a "you are ...
0
votes
0answers
21 views

Remove document from in-place hold with CSOM?

Is there any way to remove a document from an in-place hold using SharePoint CSOM?
0
votes
0answers
33 views

JSRender modify dispform.aspx button

I want to modify the button, the display text and the url link. How can I do that with JS-Link?
0
votes
1answer
30 views

Using results of executeQueryAsync with JSGRID

I understand I can retrieve the list data using context.load(data) and later firing context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, ...
0
votes
0answers
32 views

User or Group field SharePoint 2013

I have a field in a list that is a group or user field with multiple user choice. Now i want to check if there is 3 users in that field, i want to check if the current logged in user is equal to the ...