Twitter Facebook LinkedIn
Win prizes like Hard Disk, Pen drives, T-Shirts etc. Click here for more information



SharePoint Articles By Category: SharePoint Object Model (99)





How to retrieve list name from guid using .Net managed object model code in SharePoint online?
Posted By Bhawana
07-Aug-2017 3:03 AM
Views 360
Here we will discuss how we can get the list name from list Guid by using .net managed object model (csom) code in SharePoint online. Here we will do everything using console application and we will connect to SharePoint online site. Here we will pass a Guid of a list and it will return t...

How to check if current site is root site using .net managed object model code csom in SharePoint online?
Posted By Bhawana
04-Aug-2017 3:19 AM
Views 390
Here we will discuss how we can check if current site is a root site using .Net managed client object model code in SharePoint online. Here I have a site url and I want to check if the site is a root site using csom (.net managed object model code).Here we will check in a console applicat...

How to check if user belongs to SharePoint group using C#.Net managed object model code for SharePoint online?
Posted By Bijay Kumar
04-Aug-2017 3:14 AM
Views 234
In this post we will discuss how we can check if a particular user belongs to a SharePoint group or not using .Net managed object model code (csom). Here we will pass email id of the user and the function will return if the user is presented in the group or not. We are trying inside a con...

How to retrieve root web site url from site collection url in SharePoint online using .Net managed object model code?
Posted By Bhawana
02-Aug-2017 5:53 PM
Views 286
Here we will discuss how we can retrieve root web site url and title from site collection url using .Net managed object model (csom) code in SharePoint online. We will do this inside a console application using .Net managed object model code (CSOM).Here we need to load context.Site.RootWe...

Steps to retrieve all sites excluding SharePoint add-in sites using .Net managed object model code in SharePoint online
Posted By Bijay Kumar
02-Aug-2017 5:48 PM
Views 362
Here we will discuss how we can retrieve all sites excluding add-in web sites from a SharePoint online site using .Net managed code in SharePoint Online. This thing we will try inside a console application and will retrieve sub sites from a SharePoint online site collection.Whenever you w...

The property or field Id has not be initialized. It has not been requested or the request has not been executed error in SharePoint online csom
Posted By Bhawana
01-Aug-2017 2:52 AM
Views 99
Recently I was working with csom (.net managed object model) code for SharePoint online sites. There our requirement was to retrieve web Id. So we have developed a console application which was communicating to SharePoint online sites.In the code I was writing below to retrieve the web si...

How to retrieve the exact site url from the ServerRelativeUrl in SharePoint online?
Posted By Bhawana
28-Jul-2017 5:34 PM
Views 337
In this post we will discuss how we can retrieve the exact site url from the ServerRelativeUrl in SharePoint online using .Net managed object model code (C#.Net). Here we are doing in a console application and we are trying to connect to SharePoint online site.Also you can read:- Step by ...

How to retrieve all users from SharePoint group using C#.Net object model code in SharePoint online?
Posted By Bijay Kumar
28-Jul-2017 5:30 PM
Views 238
Here we will discuss how we can retrieve all users from a SharePoint group using .Net managed object model code in SharePoint online. We have a SharePoint group which has few users in it, the below code will display all the user's email id in comma separated string.We are doing everything...

An unhandled exception of type Microsoft.SharePoint.Client.ServerException ocurred in Microsoft.SharePoint.Client.Runtime.dll Cannot complete this action
Posted By Bhawana
25-Jul-2017 2:00 AM
Views 235
Recently while working in a web api project for SharePoint online, I found the below error while trying to check if document is exists using document name using .Net Managed code. The error comes as:ServerException was unhandled.An unhandled exception of type Microsoft.SharePoint.Client.S...

How to add lookup column programmatically using csom in SharePoint online Office 365?
Posted By Bhawana
09-Jul-2017 8:21 AM
Views 613
Hi folks today we are going to see how we can add lookup column programmatically using csom in SharePoint 2016 or SharePoint 2013 and SharePoint online. There are two lists where from one we need to get Title as a lookup field display name and in second list we need to show the title fiel...

SharePoint Online Office 365 The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
Posted By Bhawana
08-Jul-2017 11:44 AM
Views 210
Hi folks today we are discussing the most common issue while retrieving a collection object from SharePoint in CSOM. Recently while working with .Net managed client object model in a provider hosted add-in, I got the below error.'Microsoft.SharePoint.Client.CollectionNotIntitializedExcept...

SharePoint online CSOM You can only publish unpublish documents in a minor version enabled list error
Posted By Bhawana
05-Jul-2017 6:15 PM
Views 341
Hi folks, today we will see how we can resolve below error which is the most common when we edit SharePoint 2013/2016/Online list and add any component like web parts and check in / check out the page using CSOM.Also you can read:- How to check if list exists in SharePoint online using .N...

How to check if list exists in SharePoint online using .Net managed object model CSOM?
Posted By Bhawana
23-Jun-2017 11:07 PM
Views 680
In this post we will discuss how we can check if list exists in SharePoint online using .Net managed object model code (CSOM). Here we will use a windows application where we will communicate with our SharePoint Online site.To work with SharePoint objects we need to add the below details:...

Steps to delete sites sub sites using .Net managed object model in SharePoint online
Posted By Bhawana
22-Jun-2017 1:26 AM
Views 749
In this post we will discuss how to delete sites, sub sites using .Net managed object model in SharePoint online. Here we have taken a windows application. To work with SharePoint objects we need to add the below details:- Microsoft.SharePoint.Client- Microsoft.SharePoint.Client.Runtime- ...

Steps to create search center site in SharePoint online using .Net client object model code
Posted By Bhawana
20-Jun-2017 5:28 PM
Views 730
In this post we will discuss how to create search center site using .Net client object model code (csom) in SharePoint online. We can use console application or we can also use the windows form application. Here we will add the windows form application. To work with SharePoint objects we ...

Go to Page:       

SharePoint MVP Bijay









Write SharePoint Product Review Advertise SharePoint Products in EnjoySharePoint.com
SharePoint Online Training Write SharePoint Articles in EnjoySharePoint.com
SharePoint Consulting Office 365 Consulting




SharePoint Tag Cloud