# Veeva Vault

> Create, update and route documents and object records in Veeva Vault, run their lifecycle actions and workflow tasks, query with VQL, and follow what changes.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/veeva-vault

## Actions

### Accept workflow task

Accept a task that is available to you, so it becomes yours.

**Inputs**

- Workflow task (`task_id`, number, required): The workflow task. The list shows your open tasks; any task ID can be typed. At least 1.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "responseStatus": "example"
  }
}
```

### Complete workflow task

Complete one of your workflow tasks, with its verdict when it asks for one. Tasks that need an eSignature are completed in Vault.

**Inputs**

- Workflow task (`task_id`, number, required): The workflow task. The list shows your open tasks; any task ID can be typed. At least 1.
- Verdict (`verdict`, text): The verdict's name, such as verdict_approved__c, when the task asks for one.
- Fields (`fields`, object): Other values the task asks for, such as {"verdict_approved_comment__c": "Looks good"}.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "responseStatus": "example"
  }
}
```

### Create document

Create a document from a file, or a content placeholder when no file is given.

**Inputs**

- Name (`name`, text, required): The document's name.
- Document type (`document_type`, text, required): The document type.
- Lifecycle (`lifecycle`, text, required): The lifecycle the document follows. The list shows the ones the type allows.
- Subtype (`subtype`, text): The document subtype, when the type has subtypes.
- File (`file`, text): The document's file. Leave empty for a content placeholder.
- Fields (`fields`, object): Field values by field name, such as {"title__v": "Q3 label", "product__v": "00P000000000202"}. A reference takes the record's ID, a picklist its value's name, a multi-value field a list.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "id": 1,
    "responseStatus": "example"
  }
}
```

### Create object record

Create a record of an object, such as a Product or a custom object.

**Inputs**

- Object (`object_name`, text, required): The kind of record, such as Product or a custom object.
- Name (`name`, text): The record's name. Leave empty when the object names records itself.
- Fields (`fields`, object): Field values by field name, such as {"title__v": "Q3 label", "product__v": "00P000000000202"}. A reference takes the record's ID, a picklist its value's name, a multi-value field a list.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "id": "example",
    "responseStatus": "example",
    "url": "example"
  }
}
```

### Delete document

Delete a document with all its versions and files. Veeva support can restore it within 30 days.

**Inputs**

- Document (`document_id`, number, required): The document. The list shows the 200 most recently changed; any document ID can be typed. At least 1.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "id": 1,
    "responseStatus": "example"
  }
}
```

### Delete object record

Delete an object record.

**Inputs**

- Object (`object_name`, text, required): The kind of record, such as Product or a custom object.
- Record (`record_id`, text, required): The record. The list shows the 200 most recently changed records of the object; any record ID can be typed.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "id": "example",
    "responseStatus": "example"
  }
}
```

### Get current user

Get the user the API access token belongs to.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "active__v": true,
    "id": 1,
    "security_profile__v": "example",
    "user_email__v": "example",
    "user_first_name__v": "example",
    "user_last_name__v": "example",
    "user_name__v": "example"
  }
}
```

### Get document

Get a document's fields, versions and renditions.

**Inputs**

- Document (`document_id`, number, required): The document. The list shows the 200 most recently changed; any document ID can be typed. At least 1.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "document": {
      "classification__v": "example",
      "created_by__v": 1,
      "description__v": "example",
      "document_creation_date__v": "example",
      "document_number__v": "example",
      "id": 1,
      "last_modified_by__v": 1,
      "lifecycle__v": "example",
      "major_version_number__v": 1,
      "minor_version_number__v": 1,
      "name__v": "example",
      "status__v": "example",
      "subtype__v": "example",
      "title__v": "example",
      "type__v": "example",
      "version_modified_date__v": "example"
    },
    "renditions": {},
    "versions": [
      {
        "number": "example",
        "value": "example"
      }
    ]
  }
}
```

### Get object record

Get every field of an object record.

**Inputs**

- Object (`object_name`, text, required): The kind of record, such as Product or a custom object.
- Record (`record_id`, text, required): The record. The list shows the 200 most recently changed records of the object; any record ID can be typed.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": {
      "created_by__v": 1,
      "created_date__v": "example",
      "id": "example",
      "modified_by__v": 1,
      "modified_date__v": "example",
      "name__v": "example",
      "status__v": [
        "example"
      ]
    }
  }
}
```

### Get workflow task

Get a workflow task's status, assignee, instructions and record.

**Inputs**

- Workflow task (`task_id`, number, required): The workflow task. The list shows your open tasks; any task ID can be typed. At least 1.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "assigned_date__v": "example",
    "assignee__v": "example",
    "created_date__v": "example",
    "due_date__v": "example",
    "id": 1,
    "instructions__v": "example",
    "label__v": "example",
    "object__v": "example",
    "record_id__v": "example",
    "status__v": [
      "example"
    ],
    "workflow__v": "example"
  }
}
```

### List deleted documents

List documents and versions deleted in the last 30 days.

**Inputs**

- Deleted after (`deleted_after`, date and time): Only documents deleted after this time, up to 30 days ago.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "date_deleted": "example",
        "deletion_type": "example",
        "id": 1,
        "major_version_number__v": 1,
        "minor_version_number__v": 1
      }
    ]
  }
}
```

### List document user actions

List the user actions, such as starting a review or approving, you can take on a document's latest version.

**Inputs**

- Document (`document_id`, number, required): The document. The list shows the 200 most recently changed; any document ID can be typed. At least 1.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "lifecycle_actions__v": [
      {
        "executable__v": "example",
        "label__v": "example",
        "lifecycle_action_type__v": "example",
        "name__v": "example",
        "state__v": "example"
      }
    ]
  }
}
```

### List documents

List documents, newest change first, filtered by name, type, status or when they changed.

**Inputs**

- Name contains (`name_contains`, text): Only documents whose name contains this.
- Document type (`document_type`, text): Only documents of this type.
- Status (`status`, text): Only documents in this lifecycle state, by its label, such as Draft or Approved.
- Changed after (`changed_after`, date and time): Only records changed after this time.
- Records per page (`page_size`, number): How many records to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip records (`page_offset`, number): How many records to skip, for reading the next page. At least 0.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "classification__v": "example",
        "created_by__v": 1,
        "description__v": "example",
        "document_creation_date__v": "example",
        "document_number__v": "example",
        "id": 1,
        "last_modified_by__v": 1,
        "lifecycle__v": "example",
        "major_version_number__v": 1,
        "minor_version_number__v": 1,
        "name__v": "example",
        "status__v": "example",
        "subtype__v": "example",
        "title__v": "example",
        "type__v": "example",
        "version_modified_date__v": "example"
      }
    ],
    "responseDetails": {
      "next_page": "example",
      "pageoffset": 1,
      "pagesize": 1,
      "size": 1,
      "total": 1
    }
  }
}
```

### List object records

List an object's records, newest change first, filtered by name or when they changed.

**Inputs**

- Object (`object_name`, text, required): The kind of record, such as Product or a custom object.
- Name contains (`name_contains`, text): Only records whose name contains this.
- Extra fields (`columns`, list): More fields to return, by field name, such as abbreviation__c.
- Changed after (`changed_after`, date and time): Only records changed after this time.
- Records per page (`page_size`, number): How many records to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip records (`page_offset`, number): How many records to skip, for reading the next page. At least 0.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_by__v": 1,
        "created_date__v": "example",
        "id": "example",
        "modified_by__v": 1,
        "modified_date__v": "example",
        "name__v": "example",
        "status__v": [
          "example"
        ]
      }
    ],
    "responseDetails": {
      "next_page": "example",
      "pageoffset": 1,
      "pagesize": 1,
      "size": 1,
      "total": 1
    }
  }
}
```

### List objects

List the kinds of records (objects) in the Vault, such as Product, Study or a custom object.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "objects": [
      {
        "label": "example",
        "label_plural": "example",
        "name": "example",
        "source": "example"
      }
    ]
  }
}
```

### List record user actions

List the user actions, such as changing state or starting a workflow, you can take on an object record.

**Inputs**

- Object (`object_name`, text, required): The kind of record, such as Product or a custom object.
- Record (`record_id`, text, required): The record. The list shows the 200 most recently changed records of the object; any record ID can be typed.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "label": "example",
        "name": "example",
        "type": "example"
      }
    ]
  }
}
```

### List users

List the Vault's users.

**Inputs**

- Records per page (`page_size`, number): How many records to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip records (`page_offset`, number): How many records to skip, for reading the next page. At least 0.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "size": 1,
    "start": 1,
    "users": [
      {
        "active__v": true,
        "id": 1,
        "security_profile__v": "example",
        "user_email__v": "example",
        "user_first_name__v": "example",
        "user_last_name__v": "example",
        "user_name__v": "example"
      }
    ]
  }
}
```

### List workflow tasks

List workflow tasks on a record, or your own.

**Inputs**

- Object (`object_name`, text): Only for this object's record. Leave empty for your own.
- Record (`record_id`, text): Only for this record. Leave empty for your own.
- Statuses (`statuses`, list): Only tasks in these statuses. Leave empty for all. One or more of: `available__v` (Available to accept), `assigned__v` (Assigned), `completed__v` (Completed), `cancelled__v` (Cancelled).
- Records per page (`page_size`, number): How many records to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip records (`page_offset`, number): How many records to skip, for reading the next page. At least 0.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assigned_date__v": "example",
        "assignee__v": "example",
        "created_date__v": "example",
        "due_date__v": "example",
        "id": 1,
        "instructions__v": "example",
        "label__v": "example",
        "object__v": "example",
        "record_id__v": "example",
        "status__v": [
          "example"
        ],
        "workflow__v": "example"
      }
    ],
    "responseDetails": {
      "next_page": "example",
      "pageoffset": 1,
      "pagesize": 1,
      "size": 1,
      "total": 1
    }
  }
}
```

### List workflows

List the workflows on a record, or the ones you take part in.

**Inputs**

- Object (`object_name`, text): Only for this object's record. Leave empty for your own.
- Record (`record_id`, text): Only for this record. Leave empty for your own.
- Statuses (`statuses`, list): Only workflows in these statuses. Leave empty for all. One or more of: `active__v` (In progress), `completed__v` (Completed), `cancelled__v` (Cancelled).
- Records per page (`page_size`, number): How many records to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip records (`page_offset`, number): How many records to skip, for reading the next page. At least 0.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "initiator__v": 1,
        "label__v": "example",
        "object__v": "example",
        "record_id__v": "example",
        "started_date__v": "example",
        "status__v": [
          "example"
        ]
      }
    ],
    "responseDetails": {
      "next_page": "example",
      "pageoffset": 1,
      "pagesize": 1,
      "size": 1,
      "total": 1
    }
  }
}
```

### Reassign workflow task

Give an open workflow task to someone else.

**Inputs**

- Workflow task (`task_id`, number, required): The workflow task. The list shows your open tasks; any task ID can be typed. At least 1.
- New assignee (`assignee_id`, number, required): The person to give the task to. At least 1.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "responseStatus": "example"
  }
}
```

### Run document user action

Take a user action on a document's latest version, such as moving it to Approved or starting a workflow.

**Inputs**

- Document (`document_id`, number, required): The document. The list shows the 200 most recently changed; any document ID can be typed. At least 1.
- User action (`user_action`, text, required): The user action to take.
- Fields (`fields`, object): Values the action asks for, such as {"approver__c": "user:10001400", "due_date__c": "2026-12-01"}.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "id": 1,
    "responseStatus": "example",
    "workflow_id__v": "example"
  }
}
```

### Run record user action

Take a user action on an object record, such as changing its state or starting a workflow.

**Inputs**

- Object (`object_name`, text, required): The kind of record, such as Product or a custom object.
- Record (`record_id`, text, required): The record. The list shows the 200 most recently changed records of the object; any record ID can be typed.
- User action (`user_action`, text, required): The user action to take.
- Fields (`fields`, object): Values the action asks for, such as {"approvers__c": "user:10001399", "due_date__c": "2026-12-01T08:00:00.000Z"}.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "responseStatus": "example"
  }
}
```

### Run VQL query

Run a Vault Query Language query, such as SELECT id, name__v FROM documents, and get the rows.

**Inputs**

- Query (`vql`, text, required): The VQL query, such as SELECT id, name__v FROM product__v WHERE status__v = 'active__v'.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "responseDetails": {
      "next_page": "example",
      "pageoffset": 1,
      "pagesize": 1,
      "size": 1,
      "total": 1
    }
  }
}
```

### Update document

Change field values on the latest version of a document.

**Inputs**

- Document (`document_id`, number, required): The document. The list shows the 200 most recently changed; any document ID can be typed. At least 1.
- Fields (`fields`, object, required): Field values by field name, such as {"title__v": "Q3 label", "product__v": "00P000000000202"}. A reference takes the record's ID, a picklist its value's name, a multi-value field a list.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "id": 1,
    "responseStatus": "example"
  }
}
```

### Update object record

Change field values on an object record.

**Inputs**

- Object (`object_name`, text, required): The kind of record, such as Product or a custom object.
- Record (`record_id`, text, required): The record. The list shows the 200 most recently changed records of the object; any record ID can be typed.
- Fields (`fields`, object, required): Field values by field name, such as {"title__v": "Q3 label", "product__v": "00P000000000202"}. A reference takes the record's ID, a picklist its value's name, a multi-value field a list.

**Outputs**

- `data` (object): The response from Veeva Vault.

**Example output**

```json
{
  "data": {
    "id": "example",
    "responseStatus": "example",
    "url": "example"
  }
}
```
