File Monitor using Local Variables

Discuss RoboTask here
Post Reply
paraffin
Posts: 21
Joined: Thu Jul 19, 2018 8:31 pm

File Monitor using Local Variables

Post 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 5910 times
monitor.png
monitor.png (15.22 KiB) Viewed 5910 times
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: File Monitor using Local Variables

Post 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.
Oleg Yershov
paraffin
Posts: 21
Joined: Thu Jul 19, 2018 8:31 pm

Re: File Monitor using Local Variables

Post by paraffin »

Thanks Oleg
Post Reply