GitHub user dingminghbut added a comment to the discussion: Is there a
supported way to deeplink to a dashboard with pre-applied filters from an
external tool?
Yes, there is a supported path, but I would avoid trying to synthesize
`native_filters_key` yourself. Treat that value as a server-generated state key.
The approach I would use from an external app like Retool is:
1. Build the desired native filter state for the dashboard, using the
dashboard's native filter IDs/configuration.
2. Send that state to Superset through the dashboard filter state or dashboard
permalink API.
3. Use the returned key/URL when opening the dashboard from Retool.
The relevant Superset APIs are:
- Dashboard filter state: `POST /api/v1/dashboard/{pk}/filter_state`
- Dashboard permanent link: `POST /api/v1/dashboard/{pk}/permalink`
So the external tool should call Superset's API first, receive the generated
key, then open the dashboard with that generated state applied. For embedded
dashboards, the same idea applies: pass the generated permalink key through the
embedded SDK URL params rather than hand-building the native filter URL.
Docs:
- https://superset.apache.org/developer-docs/api/#dashboard-filter-state
-
https://superset.apache.org/developer-docs/api/create-a-new-dashboards-permanent-link/
-
https://superset.apache.org/user-docs/using-superset/embedding/#resolvepermalinkurl
GitHub link:
https://github.com/apache/superset/discussions/41512#discussioncomment-17467285
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]