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
19 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/...
0
votes
1answer
12 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
3 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 ...
1
vote
0answers
18 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 ...
2
votes
2answers
49 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 ...
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" ...
1
vote
0answers
37 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 ...
-1
votes
1answer
37 views

Caml query with more than 2 or conditions [on hold]

var fieldName; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ...
0
votes
2answers
43 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
2answers
37 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 ...
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: ...
9
votes
2answers
628 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
40 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
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
52 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
8 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 ...
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
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
32 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
71 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 ...
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
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 ...
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 ...
2
votes
1answer
52 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
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?
1
vote
1answer
51 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
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....
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
28 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
16 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
30 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
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
31 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
46 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
24 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
28 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
35 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
30 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....