SharePoint Experts Blog

Archive for June, 2015

Org Chart tip: Improve performance with user profiles caching

Note: This article is actual for Org Chart version 2.2.11 – 2.2.24. Version 2.2.26 is switched to client side caching.

Version 2.2.11 and higher for SharePoint On-Premises provides ability to cache user profiles using server side API. Thus, you can write simple warmup PowerShell script for Org Chart. The API provides two methods:

  1. Plumsail.OrgChart.Caching.CacheManager.InitUserProfilesCache(string webUrl) – initializes cache for User Profiles data source.
  2. Plumsail.OrgChart.Caching.CacheManager.ClearUserProfilesCache(string webUrl) – clears cache for User Profiles data source.

Thus you can initialize or clear user profiles cache for Org Chart. Response time of Org Chart ususally is good, but if you deal with large structures or want to make response time even better you can utilize this approach. It works for User Profiles data source only.

I created two PowerShell scripts for you:

  1. InitUserProfilesCache.ps1
  2. ClearUserProfilesCache.ps1

Read more…

Posted in: Products

Org Chart tip: How to drill down to current user by default

In this tip I want to cover such case as drilling down to current user by default on Org Chart load. We see such questions frequently and decided to cover it in our blog.

Org Chart supports two data sources: User Profiles and SharePoint list. I will show how to implement drill down to current user for both.

Drill down to current user on Org Chart load for User Profiles

If you have SharePoint Online (Office 365) or recent version of SharePoint 2013 it is quite simple to implement such drill down for User Profiles data source using JavaScript framework. Just open the configuration wizard and paste the code below to JavaScript editor on “Custom JavaScript” step.

var isInitialLoad = true;

   isInitialLoad = false; 

Read more…

Posted in: Org Chart