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

Retrieve all users in SharePoint Online using CSOM

I want to retrieve all users in SharePoint Online using CSOM, but it is not giving me all users. It is just giving me those users which are assign individually in the SharePoint group but not those ...
0
votes
1answer
8 views

Check if Project queue is empty

I want to create several projects in Project Server using CSOM (in a console application). Before I create a new project I want the previous creation operation to be finished (otherwise, from time to ...
1
vote
1answer
25 views

Enable new list experience on document library programmatically

I have been trying to enable new list experience on a document library programmatically using CSOM C# in my app. First I checked the settings in the SharePoint admin center where SharePoint Lists and ...
0
votes
1answer
20 views

Track if bulk Async calls are finished

Environment SP 2010 I am creating Visual Webpart. And on btnAdd button click adding a row with 5 controls in it using js. On button Save click I am saving those 5 fields to a SharePoint list. I can ...
1
vote
1answer
34 views

What is equivalent for SPListItemCollection.GetDataTable() in CSOM

In Server Side Object Model (SSOM) to return listitemcollection into datatable, we can just write SPListItemCollection.GetDataTable() What is its equivalent in CSOM? I found this link which has code ...
1
vote
1answer
23 views

Getting InfoPath Form Library Fields using C# CSOM

I need to extract InfoPath form fields in C# using Client Side Object Model(CSOM) and convert it into XML file. The code which I tried to get FormLibrary fields is // Starting with ClientContext, ...
0
votes
0answers
22 views

Provision OneDrive using CSOM

I try to provision OneDrive using the following code but it does not work. There is no error as well during execution. I have tried to search on the net but it pretty much i have the same code. ...
0
votes
0answers
17 views

How i can get full task notes in PWA using CSOM

I can see my notes through my publishedtask using CSOM, like code but notes in publishedtask is a string 255 characters. _context.Load(publishedProjectResource, p => p.Assignments); ...
1
vote
0answers
37 views

EditForm.aspx & Source parameter : redirect to an external URL

When you edit a list item properties, you can redirect the user to a specific page when the user click on the save button. It worked nice until I tried to test it with an external web server. So far, ...
0
votes
0answers
39 views

How to update List item Managed Metadata Column with JSOM

I have simple list with one title column and one Metadata Column, and iam trying to update my list item but getting an error: I found this article on google, and i have tried to follow it by ...
0
votes
0answers
6 views

Alter “Site Collection Access” for termset programmatically

I have the requirement to have a shared metadata set, but it should be shared amongst a limited number of site collections. Because of that I cannot use a globally shared termset as all site ...
0
votes
0answers
21 views

Uncaught TypeError: Cannot read property 'apply' of undefined,

The below code I am using is from MSDN. I am getting error Uncaught TypeError: Cannot read property 'apply' of undefined function addUserToSharePointGroup(usrData) { var siteUrl = '/sites/...
1
vote
0answers
22 views

Can not run C# CSOM on Linux

I have some problems with Sharepoint 2013. I have created a C# application for adding list items to a Sharepoint site. I want to use it on Ubuntu 16.04 but have some errors. I can use Mono ...
0
votes
0answers
7 views

Determine if Field has changed in Remote Event Receiver

I've looked everywhere for help on this and can't find anything. So hopefully I get a good answer from you guys. I'm trying to detect if a Multi User field has changed from within my Remote Event ...
0
votes
1answer
19 views

Get Content Type Name using JavaScript

I have a SharePoint 2013 on premise environment and I am currently using some JavaScript to query a pages library, however once I have queried the pages library I need to do an if statement based on ...
0
votes
0answers
18 views

Check file in and preserve the last modified by

Is it possible to check in a file as another user? The reason I ask is that I perform some updates to a list item including the modified by. I would like to preserve the modified by
0
votes
0answers
11 views

SharePoint 2013 CSOM CAML Query on Lookup Field not Filtering

I am trying to compose a CAML query against a SharePoint 2013 list and cannot seem to filter out the appropriate items. I've opened the sharepoint designer and the following query is filtering items ...
2
votes
1answer
31 views

How to run CSOM function on Linux server?

I create some CSOM function by Visual studio 2015 and want to run in Linux server. How to do it?
0
votes
0answers
10 views

SharePoint Online provided hosted ribbon app running twice

I have a SharePoint Online provided hosted ribbon app (in Azure), the app perform query the document properties and check out the document, the problem is when the document process for 50 documents or ...
0
votes
2answers
31 views

How to Upload to SharePoint using a memory stream? Using CSOM

I am creating a method to UploadDocument_FromStream() method which has one parameter -- Stream file. I am having trouble trying to keep my SharePoint connection open to allow me to upload my Stream ...
0
votes
0answers
25 views

SharepointOnlineCredentials works from Debug and CommandLine but not from External App

I am writing a C# CSOM console app using Visual Studio Community to copy an Engineering Doc and its Metadata to Sharepoint Online. It all works well when in debug mode and from the command line, but ...
0
votes
2answers
31 views

Add default value to the site column inside content type using javascript Sharepoint 2013

I am creating some site columns using javascript. And also I am creating content types. I am attaching these site columns to the content type with the <FiedRef> tag. But I want different default ...
0
votes
0answers
17 views

How to get SharePoint Online Tenant site collection ID and Central Administration site ID for on premise using CSOM?

I have created a provider hosted app which will be added to either SharePoint Online or On Premise. Now my requirement is as below. If app is added in site collection in SharePoint Online then I ...
0
votes
1answer
29 views

return file data with GetChanges

I am using CSOM to call the GetChanges(changeQuery) method so I can retrieve a list of changed files in my SharePoint site. This is working great and I am seeing a collectionof ChangeItems as ...
-1
votes
1answer
44 views

Convert String as Property

var listType = document.getElementById('ddlLists').value; "ddlLists" is an Id for a dropdown list and "listType" variable is having the selected dropdown list item as string type. i want that the "...
0
votes
2answers
64 views

SharePoint Online Remove List Permissions using PowerShell

I'm banging my head against a wall trying to get this final piece written for an automatic SharePoint Online site collection script. The final piece is creating a list within the site collection (...
0
votes
0answers
13 views

Getting the values of multivalue person or group fields using PowerShell CSOM

I have this list in SPO with two custom fields: Field 1: ReportedBy (single user or group) Field 2: Witnesses (multivalue user or group) I created a new list item and populated both fields with '...
0
votes
0answers
8 views

when trying to get specific file from sharepoint i am getting error , [duplicate]

var page = context.Web.GetFileByServerRelativeUrl(FileName); context.ExecuteQuery(); when this is executing i am getting error Specified value is not supported for the serverRelativePath parameter ...
1
vote
2answers
39 views

How to get the return value from SP.SOD.executeFunc?

I have the same scenario as what this below question has: How to get the return value of an on demand executed function? I have SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getPageTitle); ...
0
votes
1answer
31 views

Specified value is not supported for the serverRelativePath parameter

var page = context.Web.GetFileByServerRelativeUrl(FileName); context.ExecuteQuery(); When this is executing I am getting an error: Specified value is not supported for the serverRelativePath ...
1
vote
0answers
18 views

Read current site/site collection term store navigation page URL in the code

Dev Environment: SharePoint 2013 On-premise We have a web part on the home page, where we are displaying the terms (reading from Term store navigation). We are doing this by hard coding the term ...
1
vote
0answers
142 views

Copy users between sitecollection in client side object model

I invite external users to a site collection named "Extranet" in my Office365 tenant and needs to give them access to a list in another site collection so I'm doing a timer job for that. My problem ...
1
vote
0answers
33 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
0answers
26 views

How to add the Calendar 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
2answers
74 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
0answers
47 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
22 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
6 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
1answer
13 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
vote
0answers
21 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 ...
3
votes
2answers
74 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 ...
1
vote
2answers
41 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
51 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
44 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
58 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
47 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
26 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: ...
11
votes
2answers
693 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
58 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 ...