**Source URL:** https://general.veevavault.dev/commercial/mdl/component-types/documentaction.md

# Documentaction

**Class: ** `code`

Documents can have custom actions that perform specific instructions. You can use a custom action to automate certain business processes.

Learn about <a href="https://platform.veevavault.help/en/lr/45776#document_actions" target="_blank">Record Role Triggers in Vault Help</a>.

| Attribute | Metadata | Description |
| --- | --- | --- |
| label | Type: StringMax length: 60 | UI-friendly string in the Vault's base language. Although you can enter up to 60 characters, the Vault UI only displays the first 40 characters. |
| active | Type: Boolean | Indicates whether the component is active. |
| checksum | Type: StringMax length: 1500 | Used to check data for errors. |
| icon | Type: StringMax length: 1500 | Specifies the icon to display for your action in the Vault UI Actions menu. If omitted, no icon is displayed and the action is not eligible to appear in the the most frequently used section of the Action Bar. See the Vault Java SDK Documentation for a list of allowed values. |
| lifecycle | Type: Component | The lifecycle where this document action is available. |
| source_code | Type: SdkCodeMax length: 1048576 | The source of this document action. For example, Custom means this is a custom action developed with the Vault Java SDK. |
| usages | Type: StringMax length: 1500Multi-value | Specifies where in Vault this action is available for configuration and execution. For example, User Action or Entry Action. UNSPECIFIED means the action is available everywhere document actions are supported. |
| user_input_object | Type: Component | If your action takes user input, identifies the user input object. |
| user_input_object_type | Type: Component | If your action takes user input, identifies the user input object type. |

### Supported Operations {#supported-operations}

| Operation | Support |
| --- | --- |
| Create | No |
| Recreate | No |
| Alter | No |
| Drop | No |
| Rename | No |
| Describe | No |
| Generate Recreate | No |
| Queryable | No |


---

**Previous:** [Doctype](/commercial/mdl/component-types/doctype)  
**Next:** [Documentcheck](/commercial/mdl/component-types/documentcheck)