SharePoint 2013 Anonymous Site User Display Name

Strange things are no stranger to SharePoint !!. I am writing this post after banging my head for few hours trying to fix some strange behaviour in one of my SharePoint anonymous sites. The Problem: In one of my anonymous sites all the new users who visit the site after signing in was shown their … Continue reading SharePoint 2013 Anonymous Site User Display Name

SharePoint 2013 Search Query (KQL) fails for DateTime properties

Recently I faced with this weird issue when one of my customers reported an issue in one of content search web part. For that user the content search web part would throw the below error: Interestingly this issue was not reproducible in my machine and so I started checking the logs and found the below … Continue reading SharePoint 2013 Search Query (KQL) fails for DateTime properties

SharePoint 2013 – Update/Clear Taxonomy Field Value using C# CSOM

This post will detail you with sample code snippet to update and clear value of a  taxonomy field of a list item. Update value to Taxonomy Field: public void UpdateTaxonomyField(ClientContext ctx, List list,ListItem listItem,string fieldName,string fieldValue) { Field field = list.Fields.GetByInternalNameOrTitle(fieldName); TaxonomyField txField = clientContext.CastTo<TaxonomyField>(field); TaxonomyFieldValue termValue = new TaxonomyFieldValue(); string[] term = fieldValue.Split('|'); termValue.Label = term[0]; termValue.TermGuid … Continue reading SharePoint 2013 – Update/Clear Taxonomy Field Value using C# CSOM

Change Permission of a SharePoint Group using Javascript CSOM

Everything (ideal scenario) in SharePoint is now an App. SharePoint hosted Apps uses JavaScript Object Model (JSOM).So now  developers have to code more on JavaScript and learn more about doing even administrative tasks using JavaScript. In this blog i will detail one such administration task- Changing the permission of any SharePoint group. Below is a sample code … Continue reading Change Permission of a SharePoint Group using Javascript CSOM

Custom Date time refiner template for SharePoint 2013

SharePoint 2013 OOTB display options for DateTime refiners are very limited. By default there are four  display options available for DateTime refiners: But these refinement options are often not suitable as the range for each refinement value is too big and there is no option to refine the results between 2 specific dates. So let's see how we … Continue reading Custom Date time refiner template for SharePoint 2013