Overview:
When starting a workflow with Entry criteria, an error occurs: Parameter Required.
Root Cause:
Initiation of a workflow that requires Entry Criteria in the Workflow Action Dialog is a two-part Call.
Solution:
Workflowsthat prompt for Entry Criteria in the Workflow Action Dialog require the criteria to be satisfied prior to the Call to initiate the workflow.
Use the following API Call to update the criteria:
https://{CUSTOMER}.veevavault.com/api/{version}/objects/documents/{id} + multipart form to update applicable fields
Use the following Call to initiate the lifecycle action (start the workflow):
https://{CUSTOMER}.veevavault.com/api/{version}/objects/documents/{id}/versions/{major}/{minor}/lifecycle_actions/{lifecycle_action}
Related Documentation:
- Vault Help Documentation: Vault Help