Friday, March 28, 2014

SharePoint workflow deployment issue: Error occurred in deployment step ‘Activate Features’, Unable to locate workflow association data

While deploying with SharePoint workflow I got an error saying that “Error occurred in deployment step 'Activate Features': Unable to locate the workflow's association data. To restore the association data to the workflow, restart the workflow settings wizard by selecting the workflow...

Wednesday, March 26, 2014

SharePoint 2013 – Not able to see “Audit log reports” link in Site settings

In one of my previous article I have explained how to configure audit log reports in SharePoint environment. I got few comments that they are not able to see the “Audit log reports” link in site settings By activating reporting feature we can add “Audit log reports” link to...

Monday, March 24, 2014

Tuesday, March 18, 2014

Upgrade SharePoint 2010 classic mode web application to SharePoint 2013 claims mode using PowerShell commands

While working with SharePoint 2010 to 2013 migration I have to migrate SharePoint 2010 classic mode 2013 claims mode because we don’t have classic mode in SharePoint 2013. To do that I have upgraded SharePoint 2010 site to use claims mode authentication using PowerShell commands and restored the DB in SP 2013 server. Now I ran: Test-SPContentDatabase” command to check the upgrade...

Monday, March 17, 2014

Update UserProfile properties in using SPServices in SharePoint

I got a requirement to update the User Profile properties for one of my client. We have only option to do that using SPServices because they are not allowing any server side code. In SPServices we can directly update the user profile services using “ModifyUserPropertyByAccountName” method. By passing current logged-in user account to the method we can update the user profile...

Friday, March 14, 2014

Change SharePoint site time format

In SharePoint calendar by default we can see the view as Day/week in 12 hour format, not in 24 hour format. We can to change the format from 12 hour to 24 hour through UI or using PowerShell commands. We can change that through UI by following steps, Navigate to SharePoint...

Wednesday, March 12, 2014

Check current logged-in user having permissions to specific group in SharePoint SPServices

We can check the groups for current logged-in user from SPServices code using “GetGroupCollectionFromUser” opration. Before the we have to download and add folowing files. Javascript 1.7.1.js and JQuery.SpServices-0.7.1a.min.js Following script will used to get the user group details $().SPServices({ operation: "GetGroupCollectionFromUser", userLoginName: $().SPServices.SPGetCurrentUser(), async:...

Tuesday, March 11, 2014

Change default home/welcome page in SharePoint site using PowerShell commands

We can change SharePoint default home page in different ways as using Site settings if publishing feature already enabled, SharePoint object model code, Using SharePoint designer and PowerShell commands. We can change the home page by running following PowerShell commands, Get the Site details by using Get-SPSite command and web by using OpenWeb() method. $objSite = Get-SPSite...

Sunday, March 9, 2014

SharePoint content search web part – Show items sorted by Modified date

Working with SharePoint 2013, I got a requirement from client to implement a search query web part. We have to display the items depending on the modified date. Everything in my content search web part is working as expected. But I am unable to see items modified today. I have...

Saturday, March 8, 2014

SharePoint 2013 Exception “Unknown exception occurred while executing a SharePoint solution”

In SharePoint 2013 adding Sandboxed solution I got an error as “Unknown exception occurred while executing a SharePoint solution” as shown blow. By checking the ULS logs, I have found the following text as “An unknown exception occurred while executing a sandboxed code...