Hello
I am trying to create a batch macro that contains a python script. In the python script there are 2 variables that I want to be dynamic so I don't need to hardcode my APIKEY and APITOKEN on it.
I went through the Action tools and tried to Replace a specific string but that didn't work.
The workflow is attached. If someone could give me hand, it would be amazing.
Thanks
Rodrigo
Solved! Go to Solution.
Hello @calloni ,
Since you are already are passing data into the tool, why not write them into two different fields also?
Regards
Hey @calloni.
Here's a way I found to update the Python Tool directly.
1. Change the notebook from interactive mode to production mode (this will also make your macro run faster, ~ half the time)
2. Change your action tools to update productionModeScript -value
3. Specify the string you want to replace.
I have attached a working, simplified version.
Amazing solution! Thanks!
Thanks very much for the idea too!
Rodrigo