We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Server Discussions

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

Change flow execution in gallery depending on trigger (user or schedule)

Diederik_vanderharst
8 - Asteroid

Hi All,

Here is my use case and problem.

I have an app that would usually run scheduled in server using a bunch of parameters. However, I also want people to be able to go into server, find the app and feed their parameters. The flow should then figure out which parameters to use: the default ones, or the ones given.
I figured using variables like __cloud:UserId and Engine.GUIinterface would get me there, but both remain empty when the app is started from server. I would expect at least a UserId to not be empty.


Does anyone have an idea which variable will get me there?

Here's the scenario's:
1. Someone runs the app from designer (GUI = True, UserID = null) Flow will use user given params. This is good.
2. Someone runs the app from Server (GUI = False, UserID = null) Flow should use user given params, but now uses defaults. I expected UserId to return an Id to define the scenario, but it returns nothing.
3. Flow runs on a schedule (GUI = False, UserID = null). Flow uses default params. This is good.

Basically I'm saying or want to say: IF GUI = TRUE or Some other variable that indicates manual prompting (in gallery) then use user given params. Otherwise, use defaults.

Any input would be appreciated.

1 REPLY 1
Diederik_vanderharst
8 - Asteroid

What I have done now is add an empty interface tool, which when run in server (scheduled) will remain empty, but needs choosing from a user. In this case between a weekly or a monthly report, where when scheduled logic will dictate weekly or monthly report. Still needs testing though. Tomorrow it will have had a couple of iterations, at which point I'll mark this as solved, or I'll still be taking advice. :)