Execute script
banana_run_scriptExecute a JavaScript file in Banana Accounting, optionally with an open document and input data.
Instructions
Execute a Banana JavaScript file on the server (/v2/script). The script path can be absolute or relative to the user's document directory. Optionally pass a document and input data to the script.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indata | No | Optional text data passed to the script. | |
| ac2file | No | Optional name of an opened document passed to the script. | |
| scriptfile | Yes | Path to the script to execute (absolute or relative). |