Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Execution depending on the platform

pfredin
7 - Meteor

Hello,
Please, is there a way to add a condition to execute the objects in a container only if the workflow is running in the server?

My question is because a workflow sends emails. However, due to the company policies, that isn't possible from our machines but that's possible from the server.

Thank you!

Patrick Fredin

3 REPLIES 3
mceleavey
17 - Castor
17 - Castor

Hi @pfredin ,

 

There is one way you can do this. For the server version, create a constant in the workflow settings:

 

mceleavey_0-1620740078818.png

 

You can then wrap the email output into a macro and feed this constant value in as a batch parameter. Connect the batch parameter to the container in which your email tool sits. Use the action tool to switch the button off if the constant does not equal "Server".

You can then lock the macro so the designer users don't have access to see the logic that is disabling the email.

 

Hope this helps,

 

M.



Bulien

ENix
8 - Asteroid

You shouldn't need to create your own constant and have two versions of the workflow. You can use the Engine GuiInteraction constant:

  • GuiInteraction: A Boolean value indicating whether or not a workflow is being run from the GUI. When a workflow is run from the Alteryx Designer or Analytic App interface, the returned value will be True or 1. When a workflow is run from command line, the returned value is false, or 0.

ENix_0-1620755832040.png

 

So if running from the Gallery, the value will be False / 0. 

 

You can use this as a Control Parameter to dynamically close containers as detailed here - https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Dynamically-enabling-disabling-work... 

pfredin
7 - Meteor

That's an awesome solution, thank you very much!

Labels