Getdashboarddata function

Forgot to include in commit