**Source URL:** https://limited.veevavault.dev/mdl/component-types/userdefinedclass

# Userdefinedclass

**Class:** `code`

Allow users to apply custom business logic on objects when a record is created, updated, or deleted.

Learn more about [user-defined classes](/vault-sdk/shared-code/udc).

| Attribute | Metadata | Description |
| --- | --- | --- |
| `label` | Type: String Max length: 60 | UI-friendly string in the Vault's base language. |
| `active` | Type: Boolean | Indicates whether the component is active. |
| `checksum` | Type: String Max length: 1500 | Used to check data for errors. |
| `source_code` | Type: SdkCode Max length: 1048576 | The source of this user-defined class and code used to create and edit metadata. *Custom* means this UDC was developed with the Vault Java SDK. |

### Supported Operations

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

---

**Previous:** [Tagsecurityrule](/mdl/component-types/tagsecurityrule)  
**Next:** [Userdefinedmodel](/mdl/component-types/userdefinedmodel)