Using Private Data key as a command variable

Post Reply
FrankT
Newbie
Posts: 19
Joined: Tue Jul 30, 2024 7:20 pm

Using Private Data key as a command variable

Post 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
kenzienick
Newbie
Posts: 1
Joined: Tue Jul 01, 2025 5:42 am
Location: london

Re: Using Private Data key as a command variable

Post 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.
Post Reply