Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Workflow Event / Run Command: unable to reference User type constant

ZsofiaJakab
6 - Meteoroid

I am trying to add an event to my workflow, to run a command to remove ".bak" backup files after the process has finished running.

I´m specifically trying to use on the Events tab / Enable Events and adding a Run Command type of event - please see screenshot of the config attached.

 

I was not able to find documentation on what constants can we use for this, but tried to add a User type constant, ProdPath - to avoid hardcoding here the directory name where we want to remove the .bak files. (Referenced in the Working Directory field as  %User.ProdPath% ), but it runs to error.

 

The setup on the screenshot works if I replace this reference with the actual path, but I want to avoid that.

So what constants can we reference in this setup? Has anyone tried to do the same?

2 REPLIES 2
Deano478
12 - Quasar

@ZsofiaJakab this should be of use to you:

https://help.alteryx.com/current/en/designer/tools/preparation/formula-tool/constants.html

You can also just use a .bat file which is much easier for what you want to do.

ZsofiaJakab
6 - Meteoroid

thank you! yes, I´m familiar with this help page, as mentioned in my problem, I tried to reference an existing User type constant (%User.ProdPath%) but it didn´t work. Have you tried using User type constants in this Event window, was it successful for you? Perhaps I´m overlooking something!

 

I´d really prefer to go after run events if possible, we have other issues with the run command tool method. 

 

Labels
Top Solution Authors