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
vote
1answer
71 views

Getting the User Profile Picture URL by E-Mail via CSOM

I've seen many questions about how to achieve the User Profile Picture URL via the CSOM (Client-Side-Object-Model) API. However none of the solutions worked or they required the Account Name of the ...
1
vote
0answers
47 views

Add user to owner group from High Trust App (user + app policy)

I have an High Trust Provider Hosted App, which is using App + User policy [User - ManageWeb/Owner and App - Full Control] Web oWebsite = clientContext.Web; ...
1
vote
2answers
123 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 ...
1
vote
0answers
45 views

Sharepoint Workaround for Mixed content (Insecure Script) Error

I am using a client side script in a SharePoint page. Since the script is hosted in other server and delivered through http, I am getting a mixed content error in javascript console. Mixed ...
2
votes
0answers
25 views

How do I get a list of followers for a content?

I need to know who is following a site a document or a tag. found how to get followers for the current user but not for a content.
2
votes
0answers
83 views

CSOM site provisioning error: The request uses too many resources

I continue to get an error (sometimes) when provisioning a web using CSOM. According to this MSDN article, this error is returned when the CSOM request exceeds 2MB. I watched the call in Fiddler and ...
1
vote
1answer
38 views

How to make cross site collection call using CSOM for on premise provider hosted app

I have requirement that Provider hosted app is in in http://localhost:1234/site1 for example and I need to get the list items from the list in http://localhost:1234/site2 Uri hostWeb = new ...
4
votes
2answers
57 views

SharePoint 2013 - Unique permissions for claims

This is about SharePoint 2013 On-Premise environment. We've a scenario in which certain content is authored in source site collection and published to a target site collection via cross-site ...
0
votes
1answer
26 views

csom to get specified library

Are there an easy way to retrieve a specified library in a site with CSOM? I'm in SharePoint Online and for now, I retrieve all library and test depending title It's not really performing well ...
0
votes
1answer
57 views

Copy list from Sharepoint Online to another list

I want to copy a list (as it is with the same properties/metadata) from Sharepoint Online to another list in another tenant. I want to also copy all the properties and metadata of each item. I'm ...
1
vote
1answer
16 views

Utility.SearchPrincipals returns users as SecurityGroups

When I call SearchPrincipals to search for a user name, I get back results with a PrincipalType of SecurityGroup instead of User. This is odd since the user should be a.... user. What are the reasons ...
1
vote
1answer
74 views

Insert SharePoint 2010 list item type Multiple line text using C# and Client side object model

How do I insert a Multiple Line Text in a table column with nvarchar(50) How do I insert a Number into a column with int ClientContext context = new ClientContext("http://sp2010"); Web web = ...
7
votes
1answer
159 views

Code editor (IDE) for CSOM developement - Sharepoint

I am searching for a code editor with which I can connect to SharePoint library, like I can open a complete library in the editor, edit, save changes, which will be reflected in the library. ...
0
votes
2answers
67 views

The success callback of querySP.ClientContext.executeQueryAsync method

I have a SharePoint 2013 hosted app and use CSOM queries to create multiple list items. My question is related to the parameters of the callback method. After executing my query using ...
-2
votes
3answers
119 views

sharepoint 2013 get ID of a user

I am looking to figure out a way to get the ID of a user, given their name, so that I can use it in a call to /_layouts/15/userdisp?ID=n, where 'n' is the ID of the user to redirect the person who is ...
0
votes
1answer
23 views

How to upload a file in a folder and set it's title?

I am uploading files on a SharePoint folder with this code: var clientContext = GetClientContext(); var folderName = "Folder"; var fileName = @"C:\Users\user\Desktop\file.pdf"; folder = ...
1
vote
1answer
50 views

How can I update a Site Column with the content of an array with javascript CSOM?

I'm relative new to Sharepoint 2013, I'm trying to update the content of a Site column with the content of an array, I can retrieve and visualize the content of my site column, the user is able to ...
1
vote
1answer
72 views

SharePoint Online - Update User Profile Properties via CSOM App

I have a console application where I am updating SharePoint Online user profile properties via CSOM. When I do it via the following code below (using a username and password), it works just fine. ...
2
votes
2answers
1k views

Send Email from CSOM

Is it possible to send an Email from an Autohosted Sharepoint 2013 app from CSOM code (C#) with an attachment? I have the following code: EmailProperties properties = new EmailProperties(); ...