2022.1.1.30569 Patch Release Update

The 2022.1.1.30569 Patch/Minor release has been removed from the Download Portal due to a missing signature in some of the included files. This causes the files to not be recognized as valid files provided by Alteryx and might trigger warning messages by some 3rd party programs. If you installed the 2022.1.1.30569 release, we recommend that you reinstall the patch.

Dev Space

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.

Accessing React Front End Variables in Python Backend

paul_houghton
11 - Bolide

Im trying to use the platform SDK to create a python macro. I have initialised a new virtual environment to develop in but I don't know to access values entered in the react front end (eg a text box) in the python engine backend.

Any assistance in filling in the missing pebkac error would be fantastic.

1 REPLY 1
PetrT
Alteryx
Alteryx

Hey Paul,

you can simply use 

provider.tool_config.get("ValueName")

as you can see in AyxSdkInput tool example, or you could also refer the AyxSdkComplex example for more sophisticated solution. These sample tools are part of ayx_python_sdk package, so you can find them in your workspace's virtual environment eg.: ..\venv\Lib\site-packages\ayx_python_sdk\examples\