Krishti Bikal
04/13/2026, 6:30 PMkapa.ai
04/13/2026, 6:30 PMsetFilterContext command via postMessage after the dashboard loads. This overrides any existing filters with the values you provide. [setFilterContext Command]
{
"gdc": {
"product": "dashboard",
"event": {
"name": "setFilterContext",
"data": {
"filters": [
{
"positiveAttributeFilter": {
"displayForm": {
"identifier": "buyer_id"
},
"in": [
"buyer_value_here"
],
"textFilter": true,
"selectionMode": "multi"
},
"displayAsLabel": {
"identifier": "buyer_id.buyername"
}
}
]
}
}
}
}
Replace buyer_id with your actual attribute identifier and buyer_value_here with the desired value. [Attribute Filters PostMessages] 2. React SDK Embedding — Use Dispatch Commands If you're using the @gooddata/sdk-ui-dashboard React component, use useDispatchDashboardCommand with changeAttributeFilterSelection, listening for the dashboardInitialized event before applying the filter. [React Dispatch Commands] Regarding URL-Based Filter Links If you want to generate a shareable URL with filters pre-applied (rather than using the embed API), GoodData does support this via the Share dialog on a dashboard with active filters. However, there is no documented public API to programmatically generate these URLs with encoded filter states — it must be done manually through the dashboard UI. [Link to Dashboard with Active Filters] Important Recommendation If your use case involves multi-tenant data isolation (e.g., each buyer should only see their own data), pre-filling filters is not sufficient. GoodData recommends using Workspace Data Filters (WDFs) or User Data Filters (UDFs) for secure, access-controlled filtering. [Secure Filtering Approaches] 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups.
👀 Our Support team monitors all messages and will jump in if needed.Michael Ullock
04/17/2026, 1:07 PM