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
0answers
32 views

Document set options via CSOM

I'm trying to disable the option "Add the name of the Document Set to each file name" for a document set I create via CSOM. I managed to set shared fields and welcome page fields, but I don't find ...
1
vote
1answer
22 views

Read/Update SharePoint admin center Settings

Is it possible to read or even update settings in the SharePoint Admin center via an API or CSOM. The section I would like to access is shown below, this is for SharePoint Online
4
votes
2answers
124 views

Can we access the sharepoint 2013 list from another web application using CSOM

I have to access the sharepoint 2013 list from the site under another web application in the same farm. Is it possible I tried it but, it is not happening. Both the web applications lie in the same ...
1
vote
1answer
83 views

Does CSOM have a way to check if the current user has access to a web?

I've discovered that calling context.ExecuteQuery() is very slow and expensive if what you're trying to do is determine whether the current user (impersonated via Kerberos) even has permissions to ...
3
votes
3answers
108 views

Query multiple lists using javascript/CSOM

I'm about to query multiple lists using JavaScript (JSOM, SharePoint 2010). It's working when querying one list in a time, but that's annoying when I'm having lots of lists. Working example: ...
3
votes
2answers
85 views

Unable to Unregister UserCustomActions added at location scriptlink using CSOM

Below code was used to add Custom action to site <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script> <script type="text/javascript" ...
2
votes
1answer
41 views

Uncaught Error: Incorrect usage of exception handling scope

I am trying to implement try/catch scope in my JSOM, but I am getting the error message in the question's title. Below is my code: errScope = new SP.ExceptionHandlingScope(context); ...
1
vote
0answers
35 views

Unable to get the DisplayName of feature using CSOM

I am trying to get the names of all the features available at site collection using CSOM. Below code works fine to get list of all the Features but i am unable to get the DisplayName property. ...
5
votes
2answers
221 views

Fail to send email by utility class

I have utility class to send email. currently i am facing error :- a recipient must be specified EmailProperties emailp = new EmailProperties(); emailp.To = new string[] { ...
0
votes
0answers
25 views

Web part always added at the bottom of a page

I am adding a web part using the following code and xml: string xemelek = "<?xml version='1.0' encoding=\"utf-8\"?><webParts><webPart ...
0
votes
1answer
46 views

Problem with retrieving Sharepoint list with js

I am trying to retrieve list from SP page but I got following error: Uncaught TypeError: Cannot read property 'apply' of undefined from MicrosoftAjax.js file. It seems that it's due to the ...
0
votes
0answers
22 views

Site Columns & Exception has been thrown by the target of an invocation

While working with provisioning SharePoint fields through a console application written in CSOM/C# and XML, I ended up burning several hours on just one freaking SharePoint field. Problem If I under ...
0
votes
0answers
22 views

assigned to getLookupValue() returns the wrong value

I am working on a SharePoint hosted App where I load tickets for a customer that is assigned to a technical engineer with csom. On start of the app the engineers are loaded correctly but by some ...
0
votes
0answers
35 views

Date and Time column - shifted one day if entered by Calendar

Created Task list, then created first item in it with Due Date set for today. The item looks good. If I access it from browser it shows today date. If I access it via SSOM it also shows today 12AM ...
0
votes
1answer
67 views

Create a webpart from an existing list using CSOM (SharePoint Online)

SharePoint Online has this awesome functionality where you click on the Page>Edit>Insert and are able to add an existing list as a web part to the home page. I am trying to implement the same ...
5
votes
3answers
75 views

SP Online - Error deleting a site collection using CSOM

I am trying to delete site collections using CSOM script. Below is the code snippet : using (ClientContext tenantContext = new ClientContext(siteURL)) { tenantContext.Credentials = new ...
3
votes
0answers
27 views

Method GetAppInfoByName does not exist?

I am trying out the tenant APIs towards an on-premise SharePoint 2013 Server install. This server is up to the October 2015 CU. I following the guidance on Vesa's post: I registered the server-stub ...
1
vote
0answers
32 views

Create a list from the template with content (SharePoint Online)

I have created a simple list and saved as a template: Unfortunately the template has the same ID as regular CustomList: This is by design and - I suspect - cannot be changed (the property is ...
0
votes
1answer
46 views

Remove user with CSOM C# gives System.UnauthorizedAccessException

With the following code I'm trying to remove an external user programmatically from a Provider Hosted App: Context.Web.SiteUsers.RemoveById(userId); Context.ExecuteQuery(); This is giving me a ...
2
votes
1answer
101 views

Configure custom forms for New and Edit using CSOM

I want to replace the New and Edit forms for a specific list. I have a SharePoint Add-in which has two forms (one for New and one for Edit) and now I want to make sure that when a user click New or ...
1
vote
0answers
53 views

Get Internal Name of Item using CSOM in Powershell 2013 SharePoint Online

[Microsoft.SharePoint.Client.List]$list=$web.Lists.GetByTitle($listName); $qry=[Microsoft.SharePoint.Client.CamlQuery]::CreateAllItemsQuery() $items=$list.GetItems($qry) ...
3
votes
2answers
121 views

how to get a list's add new item URL with JSOM?

I'm trying to figure out how I can get a list's add new item URL using JSOM in SharePoint 2010. This is what I have so far to get if the current user has edit access on the list. ...
0
votes
1answer
62 views

Sharepoint: inline image in email

I am unable to add inline images in an email. The mail just show a square having a red cross inside it. Is there a way to add inline images to email which needs to be sent from SharePoint. Updated: ...
1
vote
0answers
21 views

Wait for AddIn uninstallation

I'm in the process of writing some PowerShell script to do some work with SharePoint Online AddIns (.app), have a look at the image below: As you can see from the highlighted syntax, I'm telling ...
0
votes
0answers
17 views

Create VCF file from SharePoint list item

I have a SharePoint contacts list, I did write the code to get the item and everything but I can't figure out a way to convert the item into vcf file format. I am using Client side object model and ...
1
vote
1answer
83 views

How to use JSOM/CSOM in SharePoint 2010 to get information about the current user like department, title, manager and phone number

I've seen how to get information about the current user using CSOM/JSOM from Get current user in Client Object Model with javascript? but I can't figure out how to get other properties like: ...
0
votes
1answer
58 views

Create tasks programmatically in Project Server 2013

I'm trying to create a simple task in a Project, using Project Server 2013 CSOM. I have looked everywhere, but i couldn't find anything that would solve this issue. I can create a new empty project ...
1
vote
2answers
83 views

Get all data from SharePoint Online Site which has the particular Site Column

Just wondering which one would be the best method for achieving below mentioned requirement or is there any other way of doing it. This is just a one time activity hence performance doesn't matter. ...
0
votes
0answers
56 views

Using CSOM to update multiple tasks with only 1 project publish

I have the following code that updates certain task fields. The problem with this code is that I have to publish an entire project after updating each task one-by-one. So for example, if I had 500 ...
1
vote
1answer
52 views

Disable Quick edit with CSOM

How can I disable "Quick edit" on lists with CSOM?
3
votes
1answer
39 views

Combine SharePoint Lists in a different SharePoint Site

I have a task to create a SharePoint List that is a combination of 2 lists present on another SharePoint site. There is no admin access to this site. Is is possible to get it and manipulate it? ...
0
votes
0answers
10 views

Publishing page javascript events

I want to do some manipulations with page content when it's loaded in edit mode. For this purpose I have registered an event handler as follows: ...
1
vote
4answers
91 views

403 Error on REST/JSOM call within a form in SharePoint 2013

I try to update a ListItem in a (foreign) SiteCollection wihtin an edit form by CSOM. But I can't get it to work without getting a 403 error: cs.updateListItem = function(siteURL, listNameSTR, ...
0
votes
1answer
68 views

get hyperlink column from sharepoint online by CSOM (C#)

I run across an issue since yesterday when i use CSOM (c#) to get the URL and description fields from a Hyperlink field? My first issue starts when i add a longer link to the hyperlink column. It ...
1
vote
0answers
27 views

Accessing SharePoint 2010 (using TMG/NTLM auth) via CSOM using C#

I can't seem to get past a 401 unauthorized error when using C# to access SP2010 CSOM. The auth of SP2010 is using TMG/NTLM. I have tried this blog, but still getting 401. Anyone have luck with this ...
1
vote
2answers
37 views

What tool I need to use for CSOM?

Just installed CSOM 64 bit on my machine. What tool I need to use in order to use CSOM?
0
votes
1answer
34 views

Does version control consume storage space in personal OneDrive?

When I overwrite a file while uploading via SharePoint CSOM, does the identical version consume space in my personal OneDrive for Business?
0
votes
0answers
26 views

Project Server 2013 CSOM cannot change ProjectData page size for specific EntitySet

I am trying to increase the default page sizes so that I can get 500 results instead of 200 results when showing ResourceTimephasedDataSet entries. I am having trouble setting the correct setting in ...
0
votes
0answers
27 views

Get assignments from Project Online for current user using CSOM

I am developing a CSOM console application that would have to get the users assignments from Project Online. My problem is, that if I use my admin accounts credentials every call works, but if I use ...
0
votes
0answers
31 views

Read Office 365 email (Exchange Online) calendar in SharePoint Online site

Need to read a specific person's(eg: MD) calendar from his Exchange Online account and show the calendar appointments in a SharePoint Online page. It is possible to read other user's Exchange Online ...
0
votes
0answers
43 views

CSOM with Anonymous sites in .NET aspx page

I have a .Net web application and I'm creating a aspx page there. In that page I want to access a SharePoint website and download an image from images library. Note: My SharePoint site is enabled for ...
0
votes
0answers
20 views

SharePoint CSOM Get Folder's Enterprise Keywords

I have a site in SharePoint 365 that's meant to hold only documents that are tagged using enterprise keywords, plus other metadata. Each folder in the site has different default values, and I'm trying ...
2
votes
1answer
79 views

Query list for all list items and their attachments using CSOM

I've used the following code to retrieve the list items on my SP site. The following code will return "Value does not fall within the expected range" if I try to get the AttachmentFiles: ...
0
votes
0answers
23 views

Folders first in paged results using CamlQuery and ListItemCollectionPosition

I'm implementing paging using CamlQuery and ListItemCollection, sorting results by the name field. I would like folders to come first, as they do in UI, e.g. "folder A2, folder B2, file A1, file B1", ...
1
vote
1answer
59 views

Personalizing Add In Parts with javascript in Sharepoint 2013

We have a customer that wishes to make it easier for the user to customize their webpart pages. We are therefor using javascript to build a simple grid where users can add, remove and move Add In ...
0
votes
0answers
25 views

CSOM - Metadata Propogation in Subfolders

I have a quick question on SharePoint Client Side Object Model (CSOM). I have a client requirement that uses folders and inside the folder there are multiple documents and folders. On the parent ...
0
votes
0answers
34 views

Routing a file via Drop Off Library using CSOM

I have CSOM code that uploads a file to a specific directory in my site. Now I want it to route the file via Drop Off Library, I tried to place the file in Drop Off Library but it is not working ...
1
vote
1answer
45 views

CSOM GetImagePreviewUrl Parameters

I am trying to retrieve the image preview URL of documents in my OneDrive for Business. The CSOM File object has a method called GetImagePreviewUrl which takes three parameters: Width Height ...
2
votes
1answer
52 views

Provider Hosted App vs BCS

I'm new to Office 365/2013 but I've been working with on-prem SharePoint 2007/2010 for a while. I've mostly setup some simple webparts to pull data out of SQL/WCF and display it. I'm wondering what ...
0
votes
0answers
29 views

Code Break Down Help: Start SharePoint Site Workflow btn OnClick

I'm rebuilding a project and I just need help following the previous developers code as I'm new to this. I am aware that this is the GUID for the site workflow: 554AAB6B-5318-4106-BA40-E7336FCE029B ...