Update Python code using Action Tool
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi everyone, I just recently started using the Python Tool in Designer and wanting to update an authentication "Key" whenever the user opens the workflow which would be run as a Analytic app. I have highlighted the section of code I want to change every time. All suggestions are greatly appreciated.
 
 
Solved! Go to Solution.
- Labels:
- Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ghwallis
I suggest you to update a text input tool, and import this cell inside of the python tool. Its a better option, because you can isolate exactly the field that you want to update without any more complications. I use this method a lot and it works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alternatively, you could use the Alteryx Python SDK to build this into a tool and pass the value via the tool UI config: https://help.alteryx.com/developer-help/ayx-python-sdk-v2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
o.k. so it looks like it sometimes works if you have two action tools (one for Notebook and one for specialCellMetadata). R definitely works. The easiest way to do this is updating a text input tool and then bringing that into Python.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you all for the comments. I got it working with Mr. Felipe's recommendation.
