Skip to content

Initiate a multi-document workflow on a set of documents.

POST/api/{version}/objects/documents/actions/{workflow_name}
NameDescription
Content-Typeapplication/json (default) or application/x-www-form-urlencoded
Acceptapplication/json (default) or application/xml
NameDescription
workflow_nameThe multi-document workflow name value.
NameDescription
documents__sysInput a comma-separated list of document id field values. Maximum 100 documents.
participant_nameEnter the participant name and input the user or group id value. For example, approvers__c: user:123,group:234.
description__sysDescription of the workflow. Maximum 128 characters.
curl -X POST -H "Authorization: {SESSION_ID}" \ -H "Content-Type: application/json" \ -d "approver__c: user:83610" \ -d "exec_approver__c: user:10081" \ -d "documents__sys: 56,31,25" \ -d "description__sys: CSR Approval" \ https://myvault.veevavault.com/api/v19.2/objects/documents/actions/Objectworkflow.clinical_study_report_approval__c
{ "responseStatus": "SUCCESS", "data": { "record_url": "/api/v19.2/vobjects/envelope__sys/0ER000000000501", "record_id__v": "0ER000000000501", "workflow_id": "1301" } }

On SUCCESS, the response includes the following:

NameDescription
record_id__vThe id value of the envelope__sys record.
workflow_idThe workflow id field value.

Manage Multi-Document Workflow Tasks

Section link for Manage Multi-Document Workflow Tasks

Multi-document workflows share some of the same capabilities as object workflows and are configured on the envelope_sys object. You can use the Object Workflow Tasks endpoints to retrieve multi-document workflow tasks, task details and initiate multi-document workflow tasks.