Danny
Danny
WWindmill
Created by Danny on 3/14/2024 in #help
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);
}
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?
2 replies