Workiva Scripting is included with Customize Workiva. To use Scripting, your workspace must have Customize Workiva/Scripting enabled, and users need the appropriate Scripting roles and file permissions.
To store structured output from a script run, serialize the output as JSON and print it after the ::set-output prefix:
import json
output = {
"status": "complete",
"recordsProcessed": 10,
}
print(f"::set-output {json.dumps(output)}")The value following ::set-output must be valid JSON.
You can download the run output manually by clicking the output icon next to the run. You can also retrieve it programmatically using the Initiate a download of run output endpoint. The API grant requires the script:read scope.