Create an index in a list using CSOM

I have been asked about how to create an list index programmatically in SharePoint 2010\2013\2016. You can do that using server object model as follows: using (SPSite site = new SPSite(“http://SHAREPOINT_SITE_URL”)) using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists[“LIST_TITLE”]; SPField field = list.Fields[“FIELD_NAME”]; field.Indexed = true; field.Update(); } For Office 365 or for SharePoint…

0

Issues with executing a build for SharePoint Apps using TFS build service

We have some good resources on how you can configure your TFS build server to be able to build SharePoint Apps. Here are few references: 1- To get your TFS build server ready for building SP apps: How to Build Office Developer Tools Projects with TFS Team Build 2012 2- Download the deployment and build process templates…

0

Overwriting ghostable files in SharePoint 2013 libraries using feature elements (no code)

One of the cool new changes or rather additions to the feature framework in SharePoint 2013 is the ability to overwrite files in document libraries. Which was never possible declaratively via file elements in modules. All we could do is set the attribute IgnoreIfAlreadyExists=”TRUE” so SharePoint doesn’t freak out if the file already existed in…

6

Save SharePoint 2013 publishing site as a template

We all know that SharePoint doesn’t support saving publishing sites as a template. I don’t recommend doing that anyway as the produced template will have errors and isn’t reliable to be used in production to create new sites off of. However, sometimes as a developer you need to save a publishing site as a template…

17

Famous SharePoint URLs & Locations

Some times you want to jump right to a specific system list, page or go to the edit mode in a SharePoint site. I wanted to list all the famous urls I used for the past years and ask you to tell me about any other ones you know to add it here in the…

34

Unable to reinstall SharePoint in Dev – Error 1706

In a production environment, uninstalling SharePoint is not recommended. Reinstalling SharePoint is not recommended either. The recommendation if you ever get into some kind of scenario where you need to reinstall SharePoint in production servers, the recommendation is to rebuild the server. However, sometimes it’s not possible, or sometimes you want to reinstall SharePoint on…

5