Access Global Variables from Business Forms

Is there a way to access the Global Variables from within a Button in a Business Form

I’m trying the following (with a Dashboard Variable) for now :

But I get

@aaguilar2 It may not be exposes to the Button action.

Please open an issue in the GitHub repository for the team to investigate:

thanks @mikhailvolkov the issue was answered and resolved!

I’ll leave the solution here

There’s no need to use context.grafana.replaceVariables

You can directly use the syntax

const test = '$__from'

1 Like