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


keithdavis
2014-11-10T19:44:23Z
So my workaround for http://www.visualcron.co...sts&t=4637#post19744  is not working.

This seems like it should work, but it doesn't:

1. Get a list of computer
2. Start a loop
3. Set a USERVAR called CURRENT_LOOP_VARIABLE to the {LOOP(CurrentValueX)}
4. Restart the computer by using {USERVAR(CURRENT_LOOP_VALUE)}


Those steps work fine. However, if there is an error in #4, I generate an email notification with the body that contains this:
Loop Value: {USERVAR(CURRENT_LOOP_VALUE)}

Somehow when there is an error, this is the result of the above line:
Loop Value: [Current context (running Task) is not in a loop]

I know the email notification task is not in the loop, but I'm not referencing the loop, I'm referencing a USERVAR.
Sponsor
Forum information
Support
2014-11-11T11:39:31Z
Hi,

this has never worked because the Loop Variables have not been transferred to the new context of Notifications. However, we made some changes in the latest beta, please try it:

http://www.visualcron.co....aspx?g=posts&t=4656 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2014-11-11T13:09:17Z
But I'm not using a Loop Variable in the email notification. I'm using a User Variable. That same User Variable value is available even after the loop ends. Why is the email notification even attempting to access the Loop Variable not the User Variable?
Scroll to Top