DannyD
Windmill2y ago
1 reply
Danny

setVariable not doing what it's supposed to?

I might be misunderstanding something, but.. I've created a variable. 'f/sandbox/token'. It's not encrypted. I put a value 'test'.
Then in a script I'm doing:
import { setVariable } from "npm:windmill-client@1.290.1"

export async function main(newToken: string) {
  setVariable('f/sandbox/token', newToken);
}


I am expecting the variable in the dashboard to now show me the newToken after run, but I still see 'test', nothing changed. Am I missing something obvious?
Was this page helpful?