Newbies FM_AB Posted June 17, 2014 Newbies Posted June 17, 2014 Hello, was wondering if someone could share some insight onto how server scripts handle global variables. I have an email script set on a schedule that, as part of it, moves between layouts. One of the layouts it goes through has a script trigger for OnLayoutEnter that changes the custom menu set based upon username. The 'Install Menu Set' aspect of that script trigger breaks the email schedule and forces an abort. I've tried to work around that by using: If $$Script = 1 Exit Script End Ifin my script trigger. Then declaring Set Variable [$$Script; Value: 1] <email stuff with layout changes> Set Variable [$$Script; Value: ""] in my email script. But, the schedule seems to ignore the global variable and proceed to run through the script trigger, breaking itself. Am I doing something wrong or can I just not use global variables in scripts run by schedules? Any help appreciated.
volkovpunk Posted June 18, 2014 Posted June 18, 2014 You can use special script and special empty layouts (without triggers) to run server side schedule
David Jondreau Posted June 18, 2014 Posted June 18, 2014 That should work, but something isn't configured correctly. Also, Set Error Capture[On] and Allow User Abort [ Off ] will help on server side scripts.
Recommended Posts
This topic is 4063 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now