In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!
Free Trial

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'.