Page 1 of 1

File Monitor using Local Variables

Posted: Thu Jul 19, 2018 8:37 pm
by paraffin
If I setup a Monitor Files trigger and try to use local variables in place of the Folder and File Mask fields then the job just doesn't pick up new files.

If I use actual values in these fields the monitor detects the changes immediately.

Is this a known issue or am I doing it wrong?
localvariables.png
localvariables.png (7.94 KiB) Viewed 5942 times
monitor.png
monitor.png (15.22 KiB) Viewed 5942 times

Re: File Monitor using Local Variables

Posted: Fri Jul 20, 2018 7:35 am
by Oleg
Local task variables do not work in any trigger.
Local variables live only when the task is performed.

If you need to use variables in trigger you have to use global variables only or set parameters explicitly.

Re: File Monitor using Local Variables

Posted: Wed Jul 25, 2018 10:49 am
by paraffin
Thanks Oleg