Context variables

Context variables are the variables that are associated with a dashboard pages or cards. You can use context variables to create dynamic and customized dashboards and cards. You can change the content of the dashboard page or cards based on the context variables.

A context variable is a dynamic value, which means that if the context variable is changed, the content that is displayed on the page or a card also changes. For example, a product details page requires the context of the product ID. The same detail page can be used for product ProductA and for product ProductB. So, when the context changes from Product A to Product B, the page content changes.

To render data on the cards that are added to dashboard pages, the page context key and card context key must match. If the cards on a dashboard do not render data, then investigate to find the issue. For more information, see Missing context.

The context variables are categorized into two types:
Page context variables
Dynamic values or parameters that a page needs to be able to load its content successfully. Currently, passing context to a page is done by configuring a link that takes you to that page. When you configure this link, the context is passed by using URL parameters. For more information about adding page context variables, see Configuring page context variables.
Card context variables
Values or parameters that a card needs to be able to load its content successfully. Currently, the card receives its context from the page that is displayed on. For more information about adding card context variables, see Configuring card context variables.