Hi
I managed to run an export workflow against the export workflow given by the definition id using the script below:
EntityRefs is the uuid of the asset or folder. You could try this using your new definition id: com.preservica.core.workflow.export-tagged
from pyPreservica import *
workflow = WorkflowAPI()
contexts: list[WorkflowContext] = workflow.get_workflow_contexts('com.preservica.core.workflow.export')
for context in contexts:
params = {'EntityRefs': '296ef8cb-5f5e-42e9-9cc0-daff460bb35e' }
pid = workflow.start_workflow_instance(context, **params)
print(pid)