community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Python node

Meteoroid
Hi all,Wondering if anyone could advise on accessing and creating workflow constants in the python node.

A few questions:

1) How can I get the value of a given workflow constant x?
2) how can I define a new workflow constant y =5?
3) how can I get a list of all constants defines in the workflow?

Regards,

Revlin
Alteryx
Alteryx

I think you may be able to get most of your answers from this thread.

 

Let me know if you still have questions.

Meteoroid
Thanks, but this solution doesn’t use the workflow constants.

I’m sure there must be a way to access the workflow constants in python no?
Alteryx
Alteryx

When you say workflow constants which ones are you referring to?

 

The example uses a question, but instead of "%Question." you have "Engine." for the workflow ones.

Highlighted
Meteoroid
Actually yes I can bring in a workflow constant value into python using the link you have suggested. But I cannot write back to the constant or create new constants in python. I want to essentially define the variables dynamically so that my workflow processes have access to certain values.
Labels