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
18 views

How Does CSOM and JSOM work in backgroud [on hold]

I would like to understand how CSOM and JSOM works in background. How it loads the SharePoint Object model in context and process the queries. I need to understand the process only. Like when we ...
0
votes
0answers
4 views

Sharepoint 2013 CSOM C# - How to limit results of KeywordQuery to specific folder?

I am currently using Sharepoint 2013. I want to limit my results of the query to specific folder within my list. For example entering the oath for the QueryText field: keywordQuery.QueryText = "path:...
1
vote
2answers
1k views

Load all fields for a specific ListItem using CSOM

I want to load all FieldValues for a specific ListItem ForExample public ListItem GetItemById(List SPList, int id, string[] fieldNames) { using (Ctx) { ...
0
votes
0answers
6 views

How to add the Calandar view webpart on the webpart page for SHarePoint Online by Powershell with csom

I am trying to add the calendar view webpart on the SharePoint Publishing page by powershell and csom, i was able to add it but it was showing all event view instead of calendar view. Code is added ...
1
vote
1answer
52 views

Error while reading the file in SharePoint Document Library

I have developed C# console application using csom to read all the files (excel, doc, slide, pdf) in the SharePoint Document Library and converts to memory stream and retrieved if any external links ...
0
votes
1answer
15 views

TypeError when trying to create a Document Set with JSOM

I am attempting to create a document set in sharepoint online using JSOM triggered by a button. I've found the guides referenced here on the subject, but I can't seem to find the issue in my code. ...
0
votes
0answers
28 views

Delete item with specific name from a list in SharePoint online

I am trying to delete a file using powershell with a specific name from a document library with the following code but I couldn't $SiteURL = "https://mytest-my.sharepoint.com/personal/...
1
vote
0answers
39 views

Download Large Files from SharePoint Online

I have a C# application in which, using the SharePoint.Client dll, I make client requests to SharePoint Online. Recently, as per this post, I was able to successfully upload a single 5GB file to ...
0
votes
0answers
4 views

Error 404 on Utility.ImportAppLicense

I try to install a custom license into a Office365 - SharePoint site. I use the following mechanism: Microsoft.SharePoint.Client.Utilities.Utility.ImportAppLicense(ctx, licenseToken, ...
0
votes
0answers
6 views

Add resource assignment work by day

For a few days I'm trying to write the assignment progress for a specific task for a specific date. For example: I'm able to set the overall progress of the task but not the actual work that resource ...
-1
votes
0answers
21 views

SP.FieldUserValue Properties am geting some Values as [Object][Object] inthe function GetListData()… listItem.get_item(fields[i]) [on hold]

var fieldName; var fields = []; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ListName ...
0
votes
2answers
28 views

User adding working, but permissions setting is not woring - CSOM

Following code adds user to SP Group. This code works perfectly and adding user to group. But permission is not going to set for the user from the group. When I go to site and "Check Permissions" ...
3
votes
2answers
56 views

Can we create List in another site collection using CSOM?

I have a very simple scenario. I am using SharePoint Online I have 2 site collections SC1 and SC2. Now i am executing a JavaScript function in SC1 and am trying to create a list in SC2 in a sub-site ...
3
votes
3answers
37 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["...
1
vote
0answers
19 views

Deleting Test-licenses from Office365

I have written a method that installs a test-license to my O365-SharePoint. It uses the following method: Microsoft.SharePoint.Client.Utilities.Utility.ImportAppLicense() This works fine, but now I ...
1
vote
0answers
13 views

Permissions required to install License?

I try to install a license using CSOM using the following method: SharePoint.Client.Utilities.Utility.ImportAppLicense When I do this I receive an "access Denied" error. What kind of permission is ...
1
vote
0answers
42 views

SharePoint Online PowerShell Custom Group in Site Settings

I know how to use PowerShell to create a new SharePoint Site Settings link, but I cannot seem to find how to create a custom group within site settings. Here is the code for creating the Custom ...
5
votes
4answers
1k views

SP O365 upload 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. Tried this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
-1
votes
1answer
38 views

Caml query with more than 2 or conditions [closed]

var fieldName; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ...
0
votes
2answers
45 views

SharePoint Context and Caml query is not working

Here is my code.. var CmalQuery=""; var fieldName=""; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); fn(); }); ...
0
votes
1answer
18 views

Set Allow this document library to receive e-mail in Incoming E-Mail - CSOM

How to programmatically set Allow this document library to receive e-mail in Incoming E-Mail section for Document Libraries in C# code? I could set other Incoming E-Mail properties as follows: ...
0
votes
2answers
38 views

Fetch User Details in SharePoint 2010

I have a requirement to fetch user details in SharePoint 2010. Just like SharePoint 2013, are there any web services available which can used in JavaScript Code? I need to fetch user details that ...
10
votes
2answers
635 views

Which one is faster CSOM or JSOM

Understanding which one has better performance for performing CRUD operation in SharePoint List, CSOM or JSOM?
0
votes
3answers
57 views

alert message not popping up

var j = jQuery.noConflict(); function PreSaveAction() { var txtTitle = j.(":input[title='Application Name']").val(); alert(txtTitle); if(txtTitle == ''){ alert("Value Cannot be ...
0
votes
2answers
41 views

Your changes conflict with those made concurrently by another user

I'm getting the following error when updating a listitem Save Conflict Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back ...
0
votes
1answer
28 views

How to get folder structure using csom?

I want to have all folder name which is present in my library and the folder structure is like this: Folder 1 Sub Folder 1.1 Sub Folder 1.1.1 Sub Folder 1.2 Folder 2 Sub ...
0
votes
1answer
690 views

Change SharePoint default publishing page content with csom

Is there a possibility to remove the following two sentences from the SharePoint publishing site home page. Welcome to Your Publishing Site These links will help you get started. I'm currently ...
0
votes
0answers
25 views

Information Management Policy Settings using CSOM in SharePoint Online

Is it possible to set the Information Management Policy Settings for content types in a document library using CSOM in SPO...??? I am trying to set the label for the document content type in a ...
1
vote
1answer
54 views

Get size of SharePoint list and library using CSOM

Is there any REST api / any approach to get the size of list and library in a site collection using client object model.? I know we have SPSite.StorageManagementInformation but this is can be used in ...
0
votes
0answers
9 views

Unable to get ref to ListTemplate using CSOM

I've created a document library template and verified it exists by displaying List Templates using SP UI in the same client context. Then using CSOM to load the site's ListTemplates into a collection, ...
0
votes
1answer
26 views

Need help with REST Query against Task List

Our O365 Site has come crawling to a snail's pace, after speaking with Microsoft Support they have told me the OOBE Web Parts are causing the speed issue and that I need to use CSOM or REST Queries to ...
2
votes
2answers
44 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....
3
votes
4answers
157 views

CSOM get document by ID

I'm using the following CSOM code to retrieve a document title by id: ClientContext context = new ClientContext("http://sharepoint"); List oList = context.Web.Lists.GetByTitle("Documents"); ...
1
vote
1answer
33 views

How to convert Linq expression representation to CAML query

I have some code to get the fields of a List with some Criteria. Web web = context.Web; List list = web.Lists.GetByTitle("Employees"); FieldCollection fieldCol = list.Fields; context.Load(fieldCol, ...
1
vote
2answers
1k views

How to get all the sharepoint 2013 site groups using C# client side object model

How to get all the SharePoint 2013 Site Groups using C# Client Side Object Model I am using VS 2013 on my laptop and SP 2013 is on the network I read that I have to use Credentials or equivalent ...
3
votes
2answers
797 views

How to query more than 100 rows with CSOM?

I have a WPF application I've built that relies on data within a SharePoint list (synced from a website). I believe, perhaps incorrectly that this query will be limited to retrieving 100 rows at a ...
-1
votes
1answer
29 views

Not able to create doc library from custom list template using CSOM

I'm attempting to Create a Document Library from a custom list template using CSOM. Using answers from similar question, I ran the following code but I'm receiving build error CS0200 Property or ...
3
votes
2answers
33 views

How to set Start this workflow to approve publishing a major version of an item using csom

i am associating a custom workflow to a library using csom. How do i select checkbox : Start this workflow to approve publishing a major version of an item using csom.
1
vote
0answers
14 views

SP2013: SP.Result returns 0 when calling get_value()

Maybe it is a very simple fix for this but i have problem with retrieving the m_value from a SP.result. SP.Result {} m_value:false __proto__:Object constructor:function () customFromJson:function () ...
5
votes
0answers
72 views

How to change list icon of a custom list?

I wanted to change the icon in site content for a custom list in SharePoint Online. Setting the ImageUrl property of the list did the job. But then I discovered that this had also changed the icon for ...
0
votes
1answer
42 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 ...
1
vote
1answer
29 views

Records Management CSOM API in SharePoint 2016

Does anyone know if with SharePoint 2016 (online) we finally get a CSOM interface to the records management functions?
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....
0
votes
2answers
539 views

Lookup field value is not getting set when using Client object model

I have a document library (contact). Have created a custom list (workstatus). Have added column to contact library which is lookup of workstatus. Below is my code using which i am setting the lookup ...
0
votes
0answers
10 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
13 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 ...
1
vote
1answer
53 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 ...
3
votes
2answers
33 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?
2
votes
1answer
53 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 ...