I’m trying to use https://github.com/looker/looker-sdk-ruby to run a filtered dashboard using the API.
I can easily get the results without specifying any filters using:
sdk.update_dashboard 64, {load_configuration: “prefetch_cache_run”}
sdk.create_dashboard_prefetch 64, ttl: 30
sdk.dashboard_prefetch 64, ttl: 30 # this works fine - I can see my data in the result
But as soon as I try to specify dashboard_filters as specified in the docs, I get:
LookerSDK::InternalServerError: An error has occurred.
With this code:
filters = [
{
name: “Email”,
value: "test@example.com"
}
]
sdk.create_dashboard_prefetch 64, ttl: 30, dashboard_filters: filters
sdk.dashboard_prefetch 64, ttl: 30, dashboard_filters: filters # this raises the error posted above
Any advice or even just some working example code would be appreciated