Question

Dashboard 'Run on Load' in API

  • 30 November 2020
  • 2 replies
  • 91 views

Userlevel 2

Does anyone know if the Dashboard ‘Run on Load’ setting can be manipulated via the API?

I was unable to locate it in the API. But I wanted to check in case I missed it somewhere.

 

TIA!

 

Edit Dashboard → Settings

 


2 replies

Userlevel 3
Badge

Hi @PaulM,

 

We can set run on load via the load_configuration parameter which is an argument in the WriteDashboard object. To set a dashboard to use run on load set load_configuration to equal “cache_run”, if we want to toggle this off we want to set load_configuration to “wait”

from looker_sdk import methods40, models40
sdk = looker_sdk.init40()
me = sdk.me()

sdk.update_dashboard(dashboard_id="1016", body=models40.WriteDashboard(load_configuration="cache_run"))

 

Please let me know if you have any questions!

 

Thanks,

Eric

Hi Eric, similar question but for embeded URL construction - is there a way to specify a URL parameters for a dashboard in such a way that it runs on load? Thank you!

Reply