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 (90)






How to add lookup column programmatically using csom in SharePoint online Office 365?
Posted By Bhawana
09-Jul-2017 8:21 AM
Views 505
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 156
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 256
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 550
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 595
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 657
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 ...

Activate publishing feature in SharePoint Online using .Net managed client object model code
Posted By Bhawana
18-Jun-2017 6:03 AM
Views 611
Here we will discuss how we can activate publishing feature in SharePoint Online using .Net managed client object model code. Here we are going to write our code in a windows application. So first create a windows application and then add the below ddls in the reference.- Microsoft.ShareP...

Retrieve term store data including Labels using .Net managed object model in SharePoint Online
Posted By Bijay Kumar
12-Jun-2017 5:59 PM
Views 586
In this post we will discuss how we can retrieve term store data including labels using .Net managed object model in SharePoint Online. In SharePoint online term store I have made the structure like below. Here also I have added the data in Other Labels. Here we will see how we can retrie...

Activate and Deactivate SharePoint Server Publishing feature using .Net managed object model in SharePoint 2016
Posted By Bijay Kumar
05-Mar-2017 5:08 PM
Views 478
Here we will discuss how we can activate SharePoint Server Publishing feature using .Net managed object model code in SharePoint 2016. This also works for SharePoint 2013.If you are new to .Net managed object model code, we have to add the below two dlls.- Microsoft.SharePoint.Client.dll-...

Create folder and sub folder inside document library using .Net client object model in SharePoint online
Posted By Bijay Kumar
25-Jan-2017 6:31 PM
Views 735
In this post we will discuss how we can create folders and sub folders inside a document library in SharePoint online using .Net managed client object model code. Here I have a SharePoint document library and by using client side code we will create a folder and within that folder we will...

How to know which site definition being used by SharePoint 2016 site using SharePoint server object model?
Posted By Bijay Kumar
23-Jan-2017 7:09 PM
Views 582
Here we will discuss how we can retrieve site definition used by any SharePoint site using SharePoint 2016 server object model. The same code will work as is in SharePoint 2013 also. Here I am explaining in a windows application in my SharePoint server.Also you can read:- How to create si...

Create sub site using SharePoint 2016 server object model and SharePoint 2016 client object model
Posted By Bijay Kumar
04-Jan-2017 3:29 AM
Views 603
In this post we will discuss how to create a sub site using SharePoint 2016 server object model and 2016 client object model. In this example I have used a windows application to create sub sites in SharePoint 2016.SharePoint 2016 Server Object Model:Below is the code to create SharePoint...

Retrieve all site templates using PowerShell and retrieve site templates using SharePoint 2016 server object model
Posted By Bijay Kumar
03-Jan-2017 1:47 AM
Views 559
In this post we will discuss how we can retrieve all site templates in SharePoint 2016 using PowerShell and how to retrieve all site templates using SharePoint 2016 server object model.Using PowerShell:We ca run the below PowerShell command to retrieve all site templates like below:Add-PS...

How to retrieve all content database names for SharePoint 2016 web applications using SharePoint server object model?
Posted By Bijay Kumar
31-Dec-2016 4:37 AM
Views 637
Here we will discuss how we can retrieve all content database name for web applications using SharePoint 2016 server object model. In my last post we have discussed how to retrieve all web application names from SharePoint farm using server object model in SharePoint 2016.Here I have show...

Retrieve all web application names from SharePoint farm using server object model in SharePoint 2016
Posted By Bijay Kumar
30-Dec-2016 10:18 AM
Views 445
Here we will discuss how we can retrieve all web application names using server object model in SharePoint 2016. Here I have shown in a windows application. I have SharePoint 2016 installed on the same machine, so I can add Microsoft.SharePoint.dll into the windows application and can wri...

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