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

0
votes
0answers
30 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 ...
1
vote
1answer
54 views

Sharing a file using CSOM in Personal OneDrive for Business

I'm trying to share a file which is located in my OneDrive for Business using the SharePoint CSOM library including PNP external sharing library. This however, returns the following error message: ...
1
vote
1answer
46 views

CSOM: Creating a ClientContext with an invalid Site Collection URL “rolls up” to Root Site Collection

Over the past few days, I've been working on an issue where I was using CSOM to inspect a particular site collection for some expected values. However, instead of finding those expected values, I was ...
0
votes
0answers
20 views

How to do a webservice call from clientside in js? [duplicate]

I would like to execute a webmethod in a SharePoint webservice. See extra info below: SharePoint webservice: http://myCompany.com/_vti_bin/Officialfile.asmx Webmethod: SubmitFile How to do this in ...
0
votes
1answer
158 views

Read sharepoint field list using CSOM in powershell

I have created 2 column in sharepoint list. One field called owner is person or group type column and the other one is website template using choice type column. The question how to read the value ...
0
votes
1answer
108 views

Getting “full name” of the User with Powershell CSOM

I've got the following code: #title :save-site.ps1 #description :Will save as .csv all lists + all fields for each list found on a Sharepoint site #author :GordonAmable #date ...
2
votes
1answer
94 views

ServerUnauthorizedAccessException Getting the Term Store in Office 365 CSOM

I have a Sharepoint provider hosted app and it get the term store in Office 365, It worked well for all users until a few days ago. Now fot the site collection administrators work fine but the others ...
2
votes
1answer
82 views

Build a SharePoint online app that can create new lists

I'm new to building apps for SharePoint in Office 365. I'm pretty new as a developer as well. I do know that Apps are now called Add-ins, but I'm using Visual Studio and the projects are still named ...
1
vote
1answer
115 views

Retrieving current user's profile picture throws “Access Denied” error

I'm trying to get the current user's profile picture and I'm using CSOM. But I receive an Access Denied error, when I actually gave Read permission to user profile service. ...
0
votes
1answer
44 views

How do I update or create user profiles in SharePoint 2013 On-Prem using Managed CSOM

I have a requirement to create and update user profiles in our on-premises SharePoint environment using managed CSOM (C#) from within an SSIS package. I'm able to retrieve user profiles without ...
1
vote
3answers
270 views

Need to Check Username

In the "Created By"List Column I need to search if Current login user is present or not using Java Script. How can I achieve that.
1
vote
0answers
13 views

Catch UserProfileNoUserFoundException exception

I have a requirement where I am checking a user account whether it does exist in User Profile Service or not. And if the account doesn't exist then it will create an account. I am using CSOM for this. ...
4
votes
1answer
87 views

CSOM combining CAML query with method call (GetWOPIFrameUrl) or two queries on the same instance

I am trying to optimize some code that calls the GetWOPIFrameUrl method for list items that were retrieved using a CAML query. The original code executed the CAML query to get the list of items, then ...
1
vote
1answer
540 views

Retrieve all fields from a list using Powershell (CSOM)

I need to write a script which I can launch (for example) at specific time and which will make a save of all lists on the SharePoint. For now, the script is able to connect to SharePoint and retrieve ...
0
votes
1answer
45 views

Is it possible to retrieve the URLs of child lists from the parent list?

Is there any way to retrieve the URLs or a least the Names/IDs of all child lists that have lookup columns referencing the parent list in SharePoint. It is easy to find the parent list of a child list ...
0
votes
1answer
71 views

How to wrapped angularjs promises in sharepoint

I'm writing an app that requires the use of $.getScript quite extensively. I've pushed it into its own function, for ease of use, but now I need to make sure that the function itself is synchronous. ...
0
votes
0answers
28 views

Check whether user is active or inactive in Active Directory using REST API or JSOM?

How can I check whether user is active or inactive in Active Directory using REST API or JSOM ?
0
votes
1answer
47 views

Cannot Update SharePoint Publishing Page Image

I am trying to update publishing Page image URL but somehow after executing query command, its value saved as null Below is the code that I am using to update image URL field- ClientContext ...
1
vote
1answer
41 views

Copy entire list using Powershell

I need to export an entire list as a .csv file. I actually have this code which works great but I need to write each column I want to export: $listTitle = "Example" $list = ...
0
votes
1answer
89 views

SPOnline - Install and *Trust* an App using CSOM

I have a SharePoint Hosted App that I want to deploy to a SPOnline site and trust the App programmatically using CSOM. Idea is to mimic manual installation completely. I tried the below threads and ...
0
votes
1answer
77 views

CSOM CAML query returning every item in the list

I'm trying to retrieve a list of items where some conditions are applied but when I run my web page it returns all records. basically this query checks whether any record with these conditions exist ...
0
votes
0answers
31 views

How to access another list from within content query web part?

I have got two lists: ListA which is a Posts list and ListB which is of type Custom list. I am using content query web part to access ListA which has a lookup to ListB. So far everything is fine, but ...
0
votes
0answers
67 views

Sharepoint 2013 Online Site Collection Backup-Restore using CSOM in Powershell

i have created Publishing site collection on SharePoint Online. Now i am trying to create new Publishing Site Collection with same Contents So can anyone explain me how to go about backup and ...
0
votes
1answer
190 views

Retrieve Doc ID generated by Document ID services using CSOM PowerShell

Once we activate the Document ID Service from the Site Collection Features. Whenever a document is uploaded in a library a Unique Document ID is generated. And this ID looks something like ...
1
vote
0answers
15 views

what is the equivalent of CustomMasterUrl.SetInherit in CSOM [duplicate]

in C# SPWeb web = SPContext.Current.Web; PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web); publishingWeb.CustomMasterUrl = "/_catalogs/masterpage/mycustom.master"; ...
0
votes
3answers
31 views

How do I set Root Web properties

I decompiled Microsofts 'CRM 2015 List Component' sandbox solution because I have some strange issues with it and I noticed that it contains tracing code/logic (which can help me to pinpoint the ...
1
vote
1answer
113 views

Bind Multiple SharePoint Group To Client Side People Picker

I want to bind multiple SharePoint Group to Client Side People Picker Using JavaScript. Requirement as below. I have two SharePoint group Group 1 and Group 2. I am able to bind group 1 by sending ...
1
vote
1answer
198 views

How to get all the sharepoint 2013 site users using csom javascript

I know how to get all users in share point site by using c# code ,but i want to get all site users using csom javscript. Any ideas?
0
votes
0answers
38 views

Associating content type containing lookup site column to custom list programmatically using CSOM ERROR: Value does not fall within the expected range

I have created a list using CSOM - works fine. & associated a content type(Without Lookup Column) - works fine but If there is any lookup column associated with Content Type & when I try to ...
1
vote
2answers
92 views

how to insert users into particular group using csom javascript

I have created one group using csom javascript upto here working fine . I want to how to add users to particular group using csom javascript.Any ideas?
0
votes
0answers
54 views

Anonymous access or read access need to access list items or update list items using rest apis or CSOM

Can I used JSOM coding when the users with anonymous access or read access need to access list items or update list items . My requirement is i create a folder and add items after user logs in . Can i ...
0
votes
1answer
51 views

CSOM : create a folder and add items

I have code to create a folder and add items to the folder . I have used CSOM to do this particulat operation . Since this is async code , sometimes the folder is not created and add items is getting ...
1
vote
2answers
347 views

Get Current Login User Profile Properties sharepoint

I need to get current login User profile properties provide information about SharePoint users, such as display name, email, PictureUrl and other business and personal information including custom ...
0
votes
1answer
100 views

Equivalent of Rest $filter in CSOM Caml query

I am trying to convert my rest implementation to CSOM. Rest API for the same : _api/web/sitegroups?$Filter=LoginName%20eq%20'Test_Grp' Unable to find an equivalent for $filter in lambda expressions. ...
1
vote
2answers
387 views

CSOM get all terms recursively in a single ExecuteQuery

I am working on some C#.NET code that loads the entire set of taxonomy terms for a site. The current code is structured like this: using (ClientContext context = new ClientContext(url)) { ...
0
votes
0answers
11 views

How to assign OneDrive List Column to a Term Set using csom?

I setting up user's OneDrive with the following: New Library Content Type (via hub) Custom Column (Managed Metadata type) and points to a dummy Term Set Since users needs to use their group Term ...
0
votes
0answers
44 views

How to create a project with required custom fields via .NET CSOM?

I have Project Server 2013 on-premises deployed. Projects are configured to have custom properties some of them are required. Could you please recommend me a way of how to create a project with ...
3
votes
2answers
204 views

Creating site column and add it to content type

I am using the below code Web rootWeb = clientContext.Site.RootWeb; rootWeb.Fields.AddFieldAsXml("<Field DisplayName='Session Name' Name='SessionName' ID='"+new GUID()+"' ...
1
vote
2answers
58 views

create a site column with preferred display name in CSOM

I want to create a site column with preferred display name and internal name under a particular group. I gone through these sites ...
0
votes
0answers
105 views

SharePoint Quick Launch Target Audicence Property using Powershell

Below is the code which am using to get a link from Quick Launch CSOM and update the property Target Audience. $quickLaunchColl= $context.Web.Navigation.QuickLaunch ...
0
votes
1answer
44 views

How to query only custom list?

Is it posible to query only custom list? In SharePoint you can add different type of list i.e tasks, contacts etc. I want to retrieve all items that the current user has created only if the items are ...
4
votes
1answer
283 views

Powershell: Populate a Multi-Value People Picker via CSOM

I'm currently working on a script to update a SharePoint list in a 2013 Dedicated environment. One of the fields on the list is a Multi-Valued 'People Picker' field and I can't figure out how to ...
0
votes
0answers
20 views

ADFS and CSOM sometimes showing error ServerUnauthorizedAccessException and sometimes forbidden

ADFS and CSOM : sometimes showing error ServerUnauthorizedAccessException and sometimes forbidden when AD authenticated user denied some permissions on SharePoint. How are the two differentiated?
0
votes
0answers
44 views

Download masterpage using CSOM (PowerShell)

I want to download the complete contents of the Master Page Gallery, but I'm getting stuck on downloading the Master Pages. I'm wondering.. is this even possible using CSOM? Using this: $fileInfo = ...
1
vote
1answer
214 views

Get ID of an inserted list item via CSOM

How can I get the ID of a list item that I just inserted in a list using the SP C# client library?
1
vote
0answers
30 views

CSOM: WorkflowInteropService is returned null

I'm trying to run SP2010 workflow in SP2013 portal and stuck on the nullable interop service... The following powershell script returns $interopService.ServerObjectIsNull == false, but when it's run ...
3
votes
2answers
140 views

SharePoint 2013 add multiple attachment to a List at one shot

I have to attach multiple document as an attachment to a List item, I want to achieve this functionality at one shot. I have found a few examples where using loop they are adding the attachments. ...
0
votes
1answer
28 views

CSOM : Page not loading as expected

I have page with 5 webparts all executed using CSOM and JSOM code . All webparts maintain their own js and css files . I am facing issues with the CSOM code , the code it behaves unexpectedly ...
0
votes
1answer
52 views

System.SecurityString

I have a function requiring a secure password as a parameter: function Create-List { param ( [Parameter(Mandatory=$true)] [string]$Username, [Parameter(Mandatory=$True)] ...
0
votes
1answer
102 views

Create a new custom content type document in managed content type library via CSOM

I would like to add a couple of custom content type documents to a library that has managed content types enabled via 2013 CSOM. Most of the documentation I have seen shows how to upload documents to ...