Page 1 of 1

Using Private Data key as a command variable

Posted: Thu Oct 17, 2024 5:31 pm
by FrankT
Hello,
I am trying to use [Switch.FlowName] as part of a command prompt command using the RUN Command.

something like this: echo %%[Switch.FlowName]%% >"test.out"

But it does not work.

How can I use a private data key and a variable for a command.

Thank you

Re: Using Private Data key as a command variable

Posted: Wed Jul 02, 2025 6:33 am
by kenzienick
In Enfocus Switch, to use a variable like [Switch.FlowName] in a RUN command, you don't need %%...%%. You just need to use the Switch variable with the correct syntax, Switch will automatically replace the value at runtime.