In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Use connection string in a expression

rbarron
6 - Meteoroid

Is there a way to check or store the connection string in a variable within a workflow to make it possible to include it in an IF/ELSE statement?

 

My workflow needs to check whether I'm in the DEV/UAT/PROD Database and return an expression based on it. 

2 REPLIES 2
LukeM
Alteryx Alumni (Retired)

Hi @rbarron ,

 

The way you can achieve this is by using the user-defined constants in the Workflow Configuration window. You can create a constant which would be all (or part) of your connection string. This can then be called and used in formula tools or connections in the workflow. The benefit of this is that you can then edit the connection string in one place and this will propagate throughout the workflow.

 

The Configuration Window can be foun by clicking on the canvas white space and then on the Workflow tab on the left.

 

Hope this helps.

 

Luke

rbarron
6 - Meteoroid

Thanks @LukeM!

 

Its now working. 

Labels
Top Solution Authors