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.
Questions tagged [csom]
1937 questions
5
votes
2 answers
Difference between OData, REST and client object model
I am new to SharePoint, and confused about all of these terminologies, what are the differences between these 3? when do we use each one?
SharePoint Freak
- 1,378
- 7
- 26
- 39
5
votes
1 answer
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 how can I create custom list using my custom…
user54665
- 51
- 1
5
votes
1 answer
First CSOM Program failes
Today I copied the following code from my book to test my first SharePoint-CSOM application, but I cannot get it to work properly:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using…
SPDeveloper
- 51
- 2
4
votes
1 answer
'Microsoft.Web' is a 'namespace' but is used like a 'type' in CSOM sharepoint
I am new to CSOM and below is my first console application. the web is not recognising. Though all the dll in 15 hive are verified. Please help
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Client;
namespace…
SPuser
- 51
- 3
4
votes
1 answer
Is it possible to get "Active Directory" groups and members using client object model in sharepoint2013?
Is it possible to get "Active Directory" groups and members using client object model in sharepoint2013?
If any one know please share your ideas. :)
SNGOKUL
- 381
- 3
- 9
- 18
4
votes
1 answer
How to get "Active Directory" groups in Sharepoint 2013 using "Client Object Model"
I tried this code, but I get only the SharePoint Groups.
var groupCollection;
function getAllGroups() {
var ctx = new SP.ClientContext();
groupCollection = ctx.get_web().get_siteGroups();
ctx.load(groupCollection);
…
SNGOKUL
- 381
- 3
- 9
- 18
3
votes
0 answers
In CSOM - Utility.ResolvePrincipal not returning null - For any user it is resolving
I am writing code to get Display name based on UserEmail. But even if i give junk email also it "ClientResult principal" not returning null. This is my code. If i give correct email id - i am getting correct displayname. But if i give wrong email…
Badri
- 31
- 1
3
votes
1 answer
CSOM: Determine if the List / Library is visible in the UI
I'm new to SharePoint CSOM and I'm trying to get a list of SP Lists/Libraries.
Here's my code:
public LinkedList getLibraries() {
Web site = spClientContext.Web;
spClientContext.Load(site.Lists);
…
Brlja
- 173
- 1
- 6
2
votes
1 answer
Upload a file in any specific subfolder of sharepoint online C# (CSOM)
I am trying to send a file (Test.docx) to a specific folder under document library in sharepoint online. The folder name is "new" which is under a "Test" folder i.e. Documents/Test/new. Now, there could be additional subfolder under "new" folder…
zam
- 31
- 1
- 4
2
votes
1 answer
Lists.GetByTitle(SPlist) - title differs depending on language
When I ask for the list collection on a sharepoint site by
Dim collList As ListCollection = Web.Lists
ctx.Load(collList)
ctx.ExecuteQuery()
the list "Documenten" appears in the list.
But if I want to address that list with…
CDR
- 21
- 1
2
votes
3 answers
CSOM: Identify "columns" created by user rather than built-in
When iterating the fields of a list how do you know which columns are yours and which are built-in ?
I know a solution for "classic" SDK using SPField.SourceId…
frenchone
- 217
- 2
- 13
2
votes
0 answers
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 Programs.exe to run application, but I can't use dmcs…
plyff2537
- 41
- 2
2
votes
1 answer
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?
plyff2537
- 41
- 2
2
votes
3 answers
Where are the sharepoint 2010 client assemblies
I am wondering where I am able to download the sharepoint 2010 client assemblies (the ones located in folder 14)
jimmybigshoes
- 299
- 2
- 8
2
votes
1 answer
SP.Taxonomy get_parent().get_id()
I have been working with this for awhile. I can get the current items without issue but when i try to get the parent id of an item. Javascript throws an error. I have this sort of working using the Name to get the correct listings. But a Parent GUID…
Scott Wagner
- 61
- 6