Etlworks has a dedicated flow type for running code in JavaScript or Python. Useful for orchestration steps, custom logic, and reading or writing data through named connections from script.
How do I set this up?
- In Flows, create a new Execute JavaScript or Python code flow.
- Open the Parameters tab.
- The default language is JavaScript. Skip to step 4 if that's what you want. Otherwise, click Open in editor:
Click language and choose Python:
- Enter the code in the Script field.
- Optional: add named connections that the script can reference.
Example of JavaScript code that uses a named connection called Files:
- Save the flow and execute it manually.
-
Schedule the flow to run periodically.