Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


zhorvath@online.no
2017-06-28T13:23:02Z
Hi
I'm trying to create a job with 6 parameters that can be called from other jobs.
I'm trying to solve this with Job Variables in the called job, which are set by the calling job.
There is a solution setting 6 Job Variables one by one, but i don't like this because of the volume of tasks.
So the caller job puts the 6 parameters in a variable with 2 columns: JobVariableName, JobVariableValue
The first task in the called job is extracting the parameters from the variable in a loop of Set Job Variable.
The problem is that SetJobVariable is not translating the first column in the file to a variable name.

For investigation I added a similar SetUserVariable task to the same loop. This is translating correctly and assigns values to user variables.
See screenshot in attached Excel file.

Shouldn't SetJobVariable work the same way as SetUserVariable?


By the way, would it be possible to extend the Set Job Variables task to support multiple lines as for example Copy Files?
  SetJobVariableSupport.xlsx (45kb) downloaded 51 time(s).

Zoltan
Sponsor
Forum information
Support
2017-06-28T14:15:42Z
You cannot update the built in Variables like {LOOP.. etc.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
zhorvath@online.no
2017-06-28T14:25:49Z
Originally Posted by: Support 

You cannot update the built in Variables like {LOOP.. etc.




Hi Henrik,

i'm using the {Loop... variable to get the name of the Job Variable to be set.
Same as when setting User Variable.

Setting the User Variable works, setting Job Variable doesn't.

I have added more detail to the screenshot in the file.
  SetJobVariableSupport.xlsx (75kb) downloaded 53 time(s).
Support
2017-06-29T08:56:16Z
We tested and it worked but you should not use a key that continas Variable. Try something else for key. Also, check "Translate to constant".
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top