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)

0
votes
1answer
45 views

Cannot get SharePoint 2010 document library list

I need to retrieve an XML file from a document library on a SharePoint 2010. But to do this I first need to be able to get the list. I am using the following code but all I get in return is a whole ...
0
votes
0answers
12 views

Minimum permissions to access Navigation Term Set with CSOM API

I need to create a service based user that is able to read the Site Navigation Term Set of a specific Site Collection by CSOM. Does anyone know what kind of specific access permissions this user ...
0
votes
0answers
17 views

How to create Resource with custom fields

I need to create resources which might have custom fields. I've encountered the issue that, if the custom field is mandatory, then I get an exception after running context.ExecuteQuery();. This is my ...
2
votes
1answer
77 views

Change the display name of Title field in “All Items” View using powershell

Using Powershell script i have change the Display name of Title column to New Request in Content Type. I have use that content type in Custom list. When click on new item in list it will display New ...
3
votes
2answers
35 views

Update vti_ property

I use CSOM and I'm trying to find a way how to change vti_contenttypeorder property for a list item. Does anyone know some workaround how I can to do this?
1
vote
1answer
72 views

checking if a site collection is readonly using powershell csom

i have a list of sites that should be readonly but i am trying to loop through the list and determine if they are or not, however it doesnt seem to me that the readonly property of the site collection ...
2
votes
2answers
55 views

Get all property of Group using CSOM

Unable to get all property of SharePoint group using CSOM. GroupCollection collGroup = clientx.Web.SiteGroups; clientx.Load(collGroup, grups => grups.Include(grup => grup.Title, grup => grup....
0
votes
1answer
24 views

CSOM request sometimes works, sometimes fails

I try to modify the value of some fields in a list with CSOM on a button click. Here is the script I call in the html: $("#palettebutton").click(function(){ getItemsToBeUpdated(); }); ...
1
vote
1answer
41 views

CSOM: Get the exact Url of SharePoint hosted list

here I wish to retrieve the URL of SharePoint hosted list it's like http://app-0329d4c1001648.spapps.com/sites/site1/EmployeeList/EmpList I tried some approaches but these are not that much useful,...
0
votes
0answers
33 views

JSOM returns empty object on some pages

I've got some JSOM code that I use in two forms: a display form and an edit form. On the display form, DisplayTicket.aspx, it works exactly as expected. On the edit form, it runs and the JSOM call ...
1
vote
0answers
17 views

Meta Navigation: Exclude deleted/unpublished pages programmatically

I am accessing the managed metadata navigation term set via CSOM in a Web Service. This term set includes many navigation terms that are configured to use friendly URL term driven pages, which are ...
0
votes
0answers
45 views

SharePoint Online Map term set to Managed Metadata column in Power shell Script using CSOM

In SharePoint Online using power shell script, I have created Managed Metadata column.. Now in my TAXONOMY TERM STORE i have term store in group , now i am trying to mapped that term set to managed ...
5
votes
1answer
49 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
41 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
55 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
31 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
31 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
50 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
44 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
28 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
18 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
25 views

PowerShell SharePoint Online CSOM Delete Versions

How do I delete all versions from a file except for the last 10?
0
votes
0answers
23 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
15 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
19 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
175 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
17 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
39 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 ...
1
vote
0answers
34 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
18 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 ...
4
votes
1answer
37 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
25 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
67 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
55 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
44 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
36 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
51 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
43 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
47 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
394 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
110 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
236 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
60 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
28 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
47 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
44 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
20 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
238 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
40 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?