While writing scripts, you can add, upload, or delete files from the Sources panel on the left side.
Workiva Scripting is included with Customize Workiva. To use Scripting, your workspace must have Customize Workiva/Scripting enabled, and users will need the appropriate Scripting role(s) and file permissions.
Add a source
To add a source:
- From Home, open a script file.
- Go to the Sources panel on the left side, right-click in the blank space just below the current sources, and select + Add Source File.
- Enter the name of the new source, and click Create.
To call functions defined in a source, like with other libraries, import the source:
import fibonacci
print(fibonacci.Fibonacci(9))
Upload a source
To upload a source:
- From Home, open a script file.
- Go to the Sources panel on the left side, right-click in the blank space just below the current sources, and select Upload Source File.
- Click Browse to select a file on your computer, then click Upload.
Delete a source
To delete a source:
- From Home, open a script file.
- Go to the Sources panel on the left side, right-click on an existing source, and select Delete.
- Confirm the deletion. A deleted source file cannot be recovered.