Replace Variable Names in a File

I am looking to create a macro which reads a template XML file I've created, then replaces various variables with values (either read from another file or with a user input prompt) and then writes it to a new XML file.

If my XML file has "%variable%variablename%" and I use "read file to variable" is there a way for the macro to access these variables?

Currently if I try then writing this variable to a new file, the text is simply passed through as "%variable%variablename%".

Or perhaps theres an easier way?

Thanks in advance!


Hi @mikeknight123 - nice to see you here.

Try using a Filter action with Process tokens set.

See this thread for an example:

1 Like

That's perfect! I knew there must be a way and that's even simpler than I thought.

Thanks for the help!

1 Like