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.

Python Tool - Dynamic File Path Input and Output Destination

Anna92
6 - Meteoroid

Hi there,

 

My python code currently works in this workflow as is, but I'm hoping to change the following code blocks (3, 6 and 10) to pull the template PDF file (f3921.pdf) and output the filled PDF forms to my workflow directory. I attempted data = Alteryx.read("#1") and filepath = data["PDFPath"], but no luck. :( 

 

I also have these in a formula tool (I attempted making this into an analytic app with a file browse and action tool, but this also did not work). Any assistance you can provide is greatly appreciated. Thank you! :)

 

Anna92_0-1650635213058.png

 

Related code blocks currently hard coded that I would like to make dynamic: 

Anna92_1-1650635260030.png

 

 

Anna92_2-1650635266607.png

 

Anna92_3-1650635274012.png

 

2 REPLIES 2
Matthew
11 - Bolide

perhaps try managing the filepaths as a separate input independent from your data?

 

Matthew_0-1650661615856.png

 

Anna92
6 - Meteoroid

Hi Matthew,

 

I've tested that but could be doing something wrong. Can you post a workflow where this works? Thank you.

Labels
Top Solution Authors