We’ve extended Inspire Early Bird Pricing until March 1. Register now and enjoy 20% off conference passes and 10% off training passes. P.S. Don’t forget to bring friends! When you sign up for five or more tickets, you get an extra 20% discount on conference passes. Learn more now.

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Distinguish between scheduled and on-demand run in server

mizzou541
6 - Meteoroid

Trying to set up a flag that will collapse some containers based on whether the app is being run on demand or as part of a scheduled run.  I'd like the analytic app to ouput file(s) to a directory if run by the scheduler but collapse that container if run on-demand in the gallery.  Is there a way to do this?  I know there is an Engine.GuiInteraction variable that will return 1 if run from designer or 0 if run on server.  But can I distinguish between the two different runs on the server?

1 REPLY 1
mizzou541
6 - Meteoroid

Found a solution so closing this.  Posting my workaround in case others might find it helpful.  I basically created a text input where I set [ScheduledRun]='Yes'.  Then I added an interface tool with a dropdown where 'No' is the only available value to select.  So if run from the gallery on-demand, that will force the valeu for [ScheduledRun] to be updated to 'No'.