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
0answers
12 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 ...
0
votes
0answers
7 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
8 views

PowerShell SharePoint Online CSOM Delete Versions

How do I delete all versions from a file except for the last 10?
0
votes
0answers
20 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
10 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
102 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
14 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
0answers
25 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
11 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
13 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
25 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 ...
0
votes
0answers
16 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
18 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 ...
0
votes
3answers
28 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
23 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
27 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
29 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
33 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 ...
1
vote
0answers
22 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 ...
1
vote
2answers
82 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
46 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
52 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 ...
0
votes
1answer
51 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
23 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
43 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
33 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 ...
0
votes
1answer
16 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
70 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
17 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
24 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
52 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
27 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
53 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
54 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
24 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
23 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
47 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 => ...
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
25 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
62 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 ...
1
vote
1answer
17 views

Returning a SharePoint 2013 termset in a tree structure using CSOM

Is there's a way to Return a SharePoint 2013 termset in a tree structure using CSOM ?
1
vote
0answers
14 views

Adding ListItem via CSOM trigger both Create and Update Workflows

I'm using CSOM to create listitems in a custom list on SharePoint 2013. On the list I have 2 workflows, one that executes on item create and one that executes on item change. Or "Start workflow ...
0
votes
1answer
32 views

Attaching a file to a list item using CSOM

I'm attempting to use a console application to attach a file to a list item I have created in code. Here's what I have: var attachmentInfo = new AttachmentCreationInformation(); // ...
1
vote
1answer
31 views

CSOM - Check if one root site collection

I have a situation in which I'd like to know whether the user is currently on their root site collection or not. I tried the following: var siteRelativeUrl = ctx.Web.ServerRelativeUrl; var isRoot = ...
1
vote
2answers
55 views

Select 5 items with caml beginning at the fifth row

I can get the 5 first items of a list with caml : var collListItemToBeUpdated = ""; var listItemToBeUpdated = ""; var enumerator; function getItemsToBeUpdated2() //this function ...
0
votes
1answer
20 views

How do I get the ParentItemID? (C# Csom)

I've a problem about the ParentItemID in the discussion board. I try to get it in order to do a hierarchy between the responses of a subject. I just access the title and the body of the response, and ...
3
votes
1answer
113 views

Send Emails via SharePoint CSOM

I am trying to write a mailsender in C# for SharePoint but each time I start it I get this error message that tells me that it doesn't have permission. I had tried to give it permission at ...
0
votes
0answers
26 views

Getting “Cannot complete this action. Please try again”

Folks: I have created an console application to upload data from a Excel spreadsheet into an custom SharePoint. Everything works perfectly until I try to save the new list item. ...