Featured post

Welcome

Welcome to my blog.
I am a Microsoft Certified Professional in C# with more than 10 yrs experience in Microsoft technology developing and designing different enterprise applications.
My specialty is developing SharePoint application in client side object model.
This blog will contain SharePoint codes and techniques which I’ve learnt while developing SharePoint applications.
Hope this blog will be helpful for you.
Enjoy reading and learning.

Check if Library or List exists without using Exception

Look Ma, no exception!!! 🙂

How to Create View Programmatically in SharePoint 2013 using client side (CSOM)

or for multiple views you can do this

for the viewFields list, it is listed below.
Sorry if it’s all messed up, still looking for a better way to display this.

Or you can check it over here, a lesser messed up than my list but still messed up 😀

Set Default Content Type Programmatically in SharePoint 2013 using client side (CSOM)

Hide Columns of Content Type Programmatically in SharePoint 2013 using client side (CSOM)

Below is the awesome code, easy peasy.

How to delete the content type from the list using CSOM in SharePoint 2013

Tried using this but won’t work if the Content Type is the default “Document” Content type, and the Id is hard coded.

In real life, real world application, you won’t hard code an Id.

The next code is the one I use and is much more robust and effective. It works on any content type as well as the built in “Document” content type.