The client-side object model (CSOM) provides access to a subset of the SharePoint Foundation server object model, including core objects such as site collections, sites, lists, and list items and allows you to program against these from client side applications.

learn more… | top users | synonyms (1)

5
votes
1answer
44 views

Not able to create list from custom list template using CSOM

I am trying to create custom list using a custom list template in csom. My lst get created but it doesn't contain the schema of the list template. It looks like a generic list. Please let me know ...
1
vote
2answers
33 views

“The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column.”

I am trying to create calculated column using csom. var fieldXml="<Field Name='calctest' DisplayName='calctest' StaticName='calctest' Type='Calculated' Required='FALSE' ColName='sql_variant1' ...
0
votes
2answers
47 views

How to get ClientContext in CSR?

In a document library's /Forms/AllItems.aspx, I am trying to render a column from ID to a file URL (FileLeafRef). However this line of code: clientContext = new SP.ClientContext.get_current(); ...
1
vote
0answers
25 views

Disable SharePoint 2013 Workflow Trigger when updating list item via CSOM

I have multiple lists in my SharePoint application that have workflows attached to them. These workflows trigger when list items are updated, which when updated from the SharePoint UI is the intended ...
0
votes
2answers
29 views

Uploading video's to a videoset with csom

I'm trying to upload a video to an asset library through c# csom. I've successfully created a videoset through csom, but every attempt to get a video into the video set falls short. VideoSet....
3
votes
3answers
39 views

SharePoint csom convert enhanced rich text to plain text

I am trying to get the value of an Enhanced Rich text column and set it to another Multi line of text (Plain text) column. When I use the below line, string richtext = li["...
0
votes
1answer
33 views

Add Webpart to a Page using only Javascript?

Is it possible to add a webpart to a page using Javascript. I want to add a webpart to a specific page whenever a button is clicked.
0
votes
0answers
19 views

How do I access a Service Application field in Central Admin using CSOM from JavaScript?

In Central Admin you go to Service Applications and you will see a list of applications. For example: Access Services 2010. When you click Access Services 2010 a list of fields is displayed as ...
0
votes
0answers
21 views

Powershell script to automate, attaching workflow with association form data

I have a custom workflow with custom association form and my requirement is to attach the existing custom workflow to any of the newly created site and provide the values to the association form....
0
votes
0answers
15 views

CSOM Publishing page list item properties

I am creating a publishing page using CSOM. When page is created I am setting some list item properties. If I get error in setting the properties, SharePoint still creates a page, I want to delete ...
0
votes
1answer
21 views

PowerShell SharePoint Online CSOM Delete Versions

How do I delete all versions from a file except for the last 10?
0
votes
0answers
21 views

Find users deleted from active directory

I have a requirement in which I need to find users which are deleted from the active directory but still exists in Sharepoint online. Is there exist a way in which this can be achieve? Below is the ...
0
votes
0answers
13 views

Find tags related to a document

I'm developing a Sharepoint-hosted App and I need to acquire the tags which a specific document is tagged with. How is this done? I'm currently trying to solve the problem using REST but I would ...
0
votes
0answers
17 views

Download Site Page content

Is it possible to retrieve the content of a site page via CSOM. I can get a list of pages but now want to save the content only, I don't need the header, footer or any menus. If this could be done I ...
3
votes
2answers
130 views

Move or copy a O365 SharePoint subsite

How do you move or copy a O365 SharePoint subsite and all of its children subsites in one site collection to another site collection? I have looked at using PowerShell but it does not seem possible ...
0
votes
0answers
16 views

CSOM for Anonymous Users (Office 365)

As far as I understand to allow CSOM calls we need to create a SharePoint App and request this permission via its manifest. Is my understanding correct? we would like to use CSOM from a PageLayout ...
1
vote
1answer
38 views

Union Multiple Lists with Client JavaScript Object Model

I have several SP 2010 lists with the exact same columns. I would like to perform a union on the lists and display a filtered subset from this union. I tried doing it using a joined datasource in SP ...
0
votes
0answers
23 views

Can a SharePoint 2010 workflow be created with CSOM in SharePoint 2013?

I would like to be able to create definitions for SharePoint 2010 workflows using XAML from an existing workflow in SharePoint 2013 without deploying a solution. Sharepoint 2013 includes methods ...
1
vote
1answer
15 views

Can I retrieve nesting level of term without navigating all parents?

I'm retrieving Microsoft.SharePoint.Client.Taxonomy.Term by Guid. It has Parent property, which can have Parent property, etc. Can I find out, which nesting level is specific term, without ...
3
votes
1answer
31 views

How to retrieve column names in other languages with CSOM?

I am trying to retrieve display name of a column in all languages available in my SharePoint installation (currently English and German). internal static void TestColumn(Microsoft.SharePoint.Client....
0
votes
0answers
21 views

Content Editor webpart added programatically not showing up on page edit

I added a webpart using the below process Export your content editor web part and get the schema XML and follow the steps given in this link. Programmatically add a web part to a page using CSOM The ...
0
votes
0answers
50 views

How to use List.Rootfolder.Files.Add to add Check-In Comment?

I am bulk loading 288K files to a DoclIb on SharePoint Online using OfficeDevPnP.Powershell.V16 and need to add a Check-In Comment programmatically. Currently I first upload the file, then call Set-...
0
votes
3answers
47 views

What is the list template type of an asset Library in SP2010?

I would like to know the list Template ID for an asset Library. Here is a link that list the template type enumeration available for all kind of lists and libraries... but nothing about the asset ...
0
votes
1answer
30 views

PowerShell/CSOM - SPFeature definition is blank

I'm using this PowerShell/CSOM script to return a the GUIDs of the features on my SharePoint site. It works as expected, however I would like to get the name of the feature as well. Here is the ...
0
votes
1answer
34 views

Find ContentType of current ListItem of Document Library

Our SharePoint site was setup by an external company. I need to connect to it and return the ListItems. I am able to do this but I cannot determine the ContentType of the Documents. My UnitTest ...
0
votes
1answer
42 views

Is there a way, with CSOM/JSOM/REST, to find all the managed property names for a list or content type?

I'm writing a PS script to update them to be searchable and to add aliases, and the task is taking a while. I need to find the managed properties that exist without manually searching for them or ...
0
votes
2answers
39 views

CSOM or JSOM or REST for new SPS developers

I want to get in to SPS development space and currently I`m more of a person who uses OOTB and aware of SharePoint Administration side. Therefore would like which is the Programming model that I ...
2
votes
0answers
38 views

CSOM PowerShell - $folder -PropertyName “HasUniqueRoleAssignments”

I'm trying to use the Load-CSOMProperties.ps1 made by Gary Lapointe to report me if a folder "HasUniqueRoleAssignments". This is working fine for webs and lists but it doesn't seem to work for folders....
1
vote
2answers
236 views

SharePoint Online CSOM PowerShell Script to create folders and add permissions

I am rather new to this place but quite few previous posts helped me out a great deal while creating some PowerShell scripts. I have been trying to create a script that will create a couple of folders ...
0
votes
1answer
83 views

SPServices $().SPServices.SPFindPeoplePicker not working for required field

I am using SharePoint 2010 and SPServices to get values from people picker in custom field. It is working fine but not fetching data for required fields. can anyone help me with this. var PP = $()....
0
votes
1answer
168 views

Javascript csom to get lookup/person or group value

I am trying to get values of few lookup columns and person or group column of my list using the below code var context = SP.ClientContext.get_current(); var web=context.get_web(); var list=web....
0
votes
1answer
55 views

Add current user (read) to contributor permission group on page load

I want to add current user(read) to contributor permission group on page load but below code is alerting 'undefined': var user; var spGroup; function AddUserToSharePointGroup() { var clientContext = ...
0
votes
0answers
27 views

Product Catalog and CSOM

Is it possible to use CSOM to configure a Product catalog site, and to provisioning Site Collections that used the product catalog that is connected to a Product catalog?
0
votes
2answers
46 views

update list code doesn't seem to working

I am trying to update to update list when user clicks on "Edit" button but below code doesn't seem to be working.. <h1 align="center">DemoList</h1> <table id="maintable"> <tr> ...
0
votes
0answers
40 views

Reading Excel and insert or update the ListItem using CSOM

I want to read an excel file that resides on the file system and insert/update the values into the SPList item programmatically. I tried with the CSOM approach, but am unable to get the desired output....
0
votes
1answer
18 views

Can't make a caml query works for a boolean

I try to take the elemtens in a list where the field "Mise à jour parc" is set to "No" with the boolean type. My field 'Mise à jour parc" has for db name for sharepoint "...
1
vote
1answer
158 views

Client Side PowerShell script to add a managed metadata column in 0365

Somehow I am not able to add a managed metadata column using client side PowerShell script. Here is the code I am using: #Specify tenant admin and site URL $User = "-" $Password = "-" $SiteURL = "-" ...
1
vote
0answers
31 views

sending document to Records Centre in SharePoint online using CSOM

We have created Records Center on our SharePoint online tenancy. Now we want to send documents from other site collections to Records Center using either CSOM or JSOM. Is it possible?
0
votes
1answer
31 views

Error while adding user to SharePoint group using CSOM

I'm facing error while trying to add users into the SharePoint groups using CSOM. When I try to add user by passing user name as "domain\V*****" (all users start with "v" character), it through error ...
1
vote
3answers
59 views

CSOM error with SP.SOD.executeFunc used twice

I'm trying to do several CSOM requests. But I can't do it. Here is my first, that works alone : var collListItemToBeUpdatedRevente = ""; var enumeratorRevente; var ...
3
votes
1answer
35 views

Updating a UserCustomAction ScriptSrc

I'm trying to update a UserCustomAction that is set on a web. I am trying to update the ScriptSrc url of the action to include a query string parameter, ?rev=1, but it does not seem to be taking. ...
1
vote
1answer
80 views

Keep the same ID on an item copied from another list

Environment : Foundation 2010 I have two helpdesk lists. In List A, the user create the item and an ID is automatically assigned. My workflow is used to copy that item in the list B. However IDs are ...
0
votes
1answer
65 views

SP.ArrayListEnumerator check if length = 0

I have one object in my code that is of type SP.ArrayListEnumerator, and I want to check if its length is 0 or not. How do I do that using JavaScript?
0
votes
1answer
21 views

Hosting a SharePoint Page in a minimalist manner

I have a simple SharePoint CSOM page that is used to pull the Current user and their Email. I'm hosting this page in a dedicated Site Collection which seems like overkill. It's essentially a redirect ...
0
votes
0answers
47 views

programmatically disable Offline Client Availability

I'm making a provider hosted add-in for SharePoint Online that will create sub-sites for a customers different projects. The customer don't want the offline sync to be activated and in a perfect ...
0
votes
1answer
24 views

How to use asp.net controls in .JS file for SharePoint Development

I am working on JS file from SharePoint designer and using HTML controls inside my JS. I am willing to replace HTML Controls with asp.net controls for the user interaction. Can any one help me in ...
0
votes
1answer
106 views

Loading list items with CSOM ClientContext.Load: performance with LINQ

We have code like this: List list = clientContext.Web.Lists.GetByTitle("TestLib"); ListItemCollection items = list.GetItems(query); clientContext.Load(items, its => its....
0
votes
0answers
24 views

check group permission with javascript

I am developing a sharepoint add-in for Office 365 and I need to check groups permissions for my site. Has anyone some ideas?
2
votes
1answer
40 views

How to debug the sharepoint web proxy

I am using the sharepoint web proxy to call the AAD token endpoint web service in Azure. When I do the call, the response calls my error callback with a jqXHR object that contains the following: { ...
0
votes
1answer
70 views

web.getList() retrives all lists. Instead of this I want only user created list

I am making Sharepoint hosted app and I am trying to get all lists appContextSite = new SP.AppContextSite(context, hostweburl); this.web = appContextSite.get_web(); //Code to get the cross domain ...