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

4
votes
0answers
31 views

How to find the last Logged-In time for the external user for a Sharepoint online Site?

I need to know about the information for the external user last logged-in time over a site. Is it possible to get through REST or Client-Object Modal?
3
votes
0answers
28 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 ...
3
votes
0answers
52 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.
3
votes
0answers
468 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 ...
2
votes
0answers
34 views

Can't apply filter [ME] to person field updated by CSOM

I create calendar item and add user field value by SharePoint CSOM. Item successfully created but I can't apply [ME] filter to person field. Returned no results. But if I open item to edit and save ...
2
votes
0answers
18 views

How to update the Microsoft.SharePoint.Client.File object Author and Editor property after successful upload

I am trying to update the Microsoft.SharePoint.Client.File object Author and Editor property after successful update. below code I have written for that. foreach (Attachment att in attachments) { ...
2
votes
0answers
26 views

Desktop application needs to support all versions of SharePoint and SPO

I am connecting to the different SharePoint environments using the CSOM. Whats the best way to deploy the available DLLs to support all SharePoint environments? Do I need to dynamically instantiate ...
2
votes
0answers
68 views

Sharepoint List creation from ListTemplet .stp using CSOM

I want to create list using .stp file which is uploaded in to the list template Gallary. --> I am using Console application to create list in online site. --> have an any idea how to add list from ...
2
votes
0answers
30 views

Find alerts in SPO library using CSOM

How can I find alerts set on my lists using CSOM? If necessary, I have the alert GUID and I have the list GUID Alert={391EDCAC-BDC0-4561-8E86-5291E3323CF8} ...
2
votes
0answers
21 views

SharePoint Workflow Subscription Service failed

I have one requirement to start the SP workflow through JavaScript. For this, i have wrote some lines of code to start the workflow.But I am getting a Subscription failed error due to undefined ...
2
votes
0answers
42 views

Implementing paging for a list

I have to implement paging for the list data and the paging should be as: previous 1 2 3 next And the new page number should be added automatically if any item is added to the list if it ...
2
votes
0answers
63 views

How to create custom user profile properties using javascript?

Is there any way to create an user profile property using the sharepoint online javascript api? if not which is the correct way to provision custom user profile properties for an app Thanks
1
vote
0answers
10 views

Rest API calls from provider hosted apps

Here is the scenario. We have a product built on linux systems and the data is available through REST API. The web application which is built on JAVA is also hosted on the same environment. Few of ...
1
vote
0answers
31 views

Get user permissions using CSOM

For SharePoint Online, I am trying to get user permissions on a site, including library, folders and files, using CSOM. I have the following code: ClientResult<BasePermissions> info = ...
1
vote
0answers
14 views

Remove users and their MySite using CSOM

I have a scenario in which I have to remove the users from SharePoint after they have left the company. Say, I have 5 users who left the company. So I'll write a CSOM code to read the names from a ...
1
vote
0answers
21 views

How to access subsite's groups with sitecollection context?

I have two sub-sites in my sharepoint site,SampleSite1 and SampleSite2 under Sitecollection called MainSite. http://xyz.sharepoint.com/sites/MainSite/ - SiteUrl ...
1
vote
0answers
11 views

CSOM: Add app to web that is present in organization app catalog

I need to install Apps to a web programmatically using CSOM. Apps are already added to the App Catalog of the tenancy. Is it possible? I am aware of LoadAndInstallApp API and it works but requires ...
1
vote
0answers
25 views

SPA using c# and angular js code in SharePoint provider hosted app

We have built an app using provider hosted SharePoint app model with angularjs. Now we are planning to use the app on a SharePoint site which is integrated to ADFS. When I google on how to use ADFS ...
1
vote
0answers
32 views

Sharepoint permissions regarding One Drive

I am creating an application which makes folders for users and sharing it to them, in a main OneDrive account. Seems like the permission are not the same or some how being overridden by OneDrive ...
1
vote
0answers
29 views

How to remove workflow associations/subscriptions

Is there any method available in CSOM to delete workflow subscription from site. I tried with WorkflowDeploymentServiceDef.DeleteObject() and WorkflowDeploymentServiceDef.RemoveFromParentCollection() ...
1
vote
0answers
34 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
0answers
37 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. ...
1
vote
0answers
33 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 ...
1
vote
0answers
60 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) ...
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 ...
1
vote
0answers
28 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
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. ...
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 ...
1
vote
0answers
71 views

SharePoint Online (Office 365) Workflow to Copy New File Versions to Record Center Automatically

We have a design goal to copy every new version of files in our Office 365 / SharePoint Online-based Document Center site to a separate Records Center site automatically using a SharePoint 2013 ...
1
vote
0answers
108 views

Enable Enterprise keywords in SharePoint online using Powershell/CSOM

I'm setting up a Office365 / SharePoint Online portal using Powershell and CSOM and have sorted almost everything out except adding this: Library Settings -> Enterprise Metadata and Keywords Settings ...
1
vote
0answers
32 views

Is there any other way to create a list template programmatically Other than by using Server object?

Server Object is having a function SaveAsTemplate() to create list templates. By any other means can we create the list template other than server object ?
1
vote
0answers
187 views

how to show all search results using jquery Datatable?

I am searching lists using CSOM Search API and displaying the results using jquery DataTable. My problem at the moment is that my search returns 2134 rows in total, but search api has a limit of 500 ...
1
vote
0answers
327 views

Sharepoint Online CSOM Powershell - Remove Permission level for a Group in a list

I have a list in which I want to remove "Contribute" Permission Level for a particular group "List Members Group". After removing this, I want to add "Read" Permission level. Basically, I want the ...
1
vote
0answers
30 views

Is there any way to implement numbered pagination instead of PREV | NEXT using JSOM without using search

I'm wondering if there any way to implement Numbered pagination while retrieving items from a list like "PREV 1,2,3..NEXT" instead of just having "prev | next". I followed this code example MSDN and ...
1
vote
0answers
123 views

jQuery not showing custom error messages in PreSaveAction method of sharepoint 2013 list “New Form”

I am validating sharepoint list fields on PreSaveAction method of sharepoint list new form. I have done some customization and have put some labels with error messages under the sharepoint formfields. ...
1
vote
0answers
84 views

Get spusercontext like _spPageContextInfo on page load

Is there any way to get the Current user details once the page loads in SharePoint 2013 like we get data for _spPageContextInfo I don't like to call below methods again and again var context = ...
1
vote
0answers
229 views

Create a new list from custom template with CSOM in SharePoint Online

I am trying to create a new list from an existing list template using CSOM in a SharePoint Online environment. Here is my code: using (ClientContext ctx = new ClientContext(WebURL)) { ...
1
vote
0answers
304 views

How to get the correspond listItem from the last major version of a file via CSOM

I am trying to get the last major version of a file in a sharepoint-list by using CSOM with the following Code: var web = clientContext.Web; var list = web.Lists.GetByTitle("MyList"); ...
1
vote
0answers
99 views

How to validate current user permissions for a given Term Store Group using CSOM

I can't seem to find a way to check for the current user permissions for a term store group or term set in Sharepoint Online. I know the REST interface does not support any kind of interaction with ...
1
vote
0answers
26 views

Linking List Web Parts Using CSOM

I'm looking at linking 2 list webparts on a page. I have found code that suggests it is possible on the server side object model here. ...
1
vote
0answers
326 views

SP2013 CSOM - 401 Unauthorized Exception from Server - What Feature/Service is the issue

I try to access a SharePoint 2013 Server via C# CSOM. The only thing I do is create the ClientContext, set the context.Credentials to my NetworkCredential, and ask for the Web Web web = context.Web;. ...
1
vote
0answers
75 views

Move files from fileshare to document library but keeping modifed date, modified by CSOM Powershell

I am wanting to do a migration where I move files from a fileshare to a document library in office 365. This needs to be done in CSOM powershell and needs to keep all of the modified dates, modified ...
1
vote
0answers
107 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
0answers
109 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 ...
0
votes
0answers
17 views

SPservices GetListItems giving 400 bad request error

I am using the below mentioned code to retrieve a column value from a list and calculate its sum. The below code is giving a 400 bad request error. function sum (attr,CamlQuery,BA) { ...
0
votes
0answers
23 views

Getting 400 bad request error while doing CSOM GetListItems

I am using the below mentioned code to get data from a list var Totalsum=0; var attr="ows_columninternalname"; function sum1(CamlQuery) { var soapEnv = "<soapenv:Envelope ...
0
votes
0answers
12 views

JSOM column creation in host web doesnt work

I get an error (the error message is empty but it doesnt work) with this script for creating a column on a SharePoint host web. <script type="text/javascript"> var clientContext = new ...
0
votes
0answers
25 views

Change preferred user lang in CSOM

I added a button in the master page to switch easily between 2 languages. For now it sets the cookie but I need to change the preferred language in user/profile/regional settings. I'm searching ...
0
votes
0answers
33 views

CSOM, ExecuteQuery fails on first try

When I execute the following code about a SharePoint online library, I always get an error when ExecuteQuery executes for the first time but it works when ExecuteQuery executes for the second time. ...
0
votes
0answers
22 views

How to create/add same list columns to another existing list content type programatically?

I have a requirement that to append the list columns with field references. I have List Content type A and the same List Content type A in another site. I need to append the newly created columns of ...