4

Is there a way to tell what user has been selected in the Viewing Dashboard as field? I want an embedded VF page that will automatically refresh based on that field.

  • checked the obvious ones (http headers and request parameters) to no avail :( – bigassforce Jan 16 '14 at 23:51
2

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_dashboard.htm

RunningUserId

SELECT Id, Description, DeveloperName, RunningUserId, RunningUser.isActive, Title, Type 
FROM Dashboard

I use WHERE RunningUser.isActive = false OR Type = 'LoggedInUser' so:

  • I can see where we screwed up the deactivation of users and dashboard will fail to run (pain especially if it was scheduled)

  • I look for candidate for delete/demotion when we've run out of the 5 dynamic dashboards limit.

  • But what if the dashboard allows you to change the running user? – Daniel Hoechst Jan 17 '14 at 4:56
  • Couldn't figure anything out either. I guess you'll have to add user lookup to your VF page and do the security-related stuff yourself, forget about leveraging with sharing magic... – eyescream Jan 17 '14 at 10:19
  • Hello, so what would be the answer for this question? – stack_pointer is EXTINCT May 10 '16 at 20:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.