Custom fields
Store and filter your own member and organization values, such as plan, region, or account owner.
Overview
Custom fields store values beyond Datum’s standard source fields. Examples include plan, region, and account owner.
Each field has a key, display name, and type. Supported types are string, url, int, number, date, boolean, and enum. Fields apply to members, organizations, or both.
A field stores one current value per subject. Setting a value replaces the previous value. Custom fields do not affect matching.
Where fields come from
The first non-empty write to a new key creates its definition. A new key that you type cannot contain spaces. Clearing an unknown key is refused. Sources of custom fields include these operations:
- CSV imports retain unmapped columns as custom values.
- Common Room-compatible pushes can include custom fields.
- CLI, MCP, and REST writes create definitions for new keys.
Supply the display name and type when creating a field through a command or API: --name and --type on the CLI, name and value_type over REST and MCP. A field created without a type is a string field. The type cannot change afterward.
Values are always sent as text, such as "12" or "true". A value must fit its field’s type:
| Type | Accepted values |
|---|---|
int |
Whole numbers, such as 12 or -3 |
number |
Numbers, such as 12 or 4.5 |
date |
Dates such as 2026-12-01, or a full timestamp |
boolean |
true, false, yes, no, 1 or 0 |
string, url, enum |
Any text |
Datum refuses a value that does not fit, such as twelve in an int field, and keeps the previous value. The profile editor shows the same message before you save. CSV imports and pushes store a source’s values as sent.
Basics
Edit a member’s fields
- Open the member’s page. Custom values appear in the Profile panel.
- Select the pencil beside the field.
- Enter the new value, or clear the input to remove the value.
- Press Save.
The profile lists existing values and their types. Adding a field without an existing value requires the CLI, an agent, REST, or CSV import.
Edit an organization’s fields
Open the organization page. The Custom fields panel is in the main column, below the activity. Existing fields have controls such as Edit Plan and Clear Plan.
To set a new field:
- Enter the Field key.
- Enter the Value.
- Select Share definition with members if both subject types should use the field.
- Press Save field.
A new key creates an organization string field. To create a field of another type, use the CLI, an agent or REST. An empty value clears the current value.
Filter on a custom field
Member fields appear under Contacts in the filter builder, using their display names. Operators depend on the type.
Numbers support numeric comparisons. Dates support time comparisons. Boolean fields support is. Other types use text comparisons. All custom fields support is empty and is not empty.
Organization-only fields do not appear in segment filters. Organization sinks can export them to CRMs or warehouses.
Erasure
Erasing a member removes their custom values with their other personal data.
From your terminal or agent
List existing fields before writing a value. Reuse the correct key to avoid duplicate definitions.
ocmgr custom-fields list --json
ocmgr custom-fields set <memberId> plan Enterprise --name Plan --type string --json
ocmgr custom-fields set <memberId> plan --json # no value clears it
ocmgr custom-fields set-organisation domain:acme.io region EMEA --subject both --json{ "name": "list_custom_fields", "arguments": { "subject": "member" } }
{ "name": "set_custom_field", "arguments": { "member_id": "<memberId>", "field": "plan", "name": "Plan", "value_type": "string", "value": "Enterprise" } }curl -X POST "$OCMGR_URL/v1/members/<memberId>/custom-fields" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' \
-d '{"field":"seats","name":"Seats","value_type":"int","value":"12"}'list_custom_fields includes the number of members with values for each field.
See list_custom_fields, set_custom_field, and set_organisation_custom_field.
FAQ
Can I change a field's type?
No. The first definition fixes its type. Choose the required type when creating the field.
Can I delete a field?
Run ocmgr custom-fields delete <field> to archive its definition. It disappears from the catalogue and filter pickers.
Existing values, saved filters and history remain.
Use custom-fields list --include-archived to find archived definitions. Restore one with custom-fields delete <field> --restore.
My CSV column Plan and my script's plan are two fields.
Keys preserve capitalization. Choose one key. Use it consistently in imports and scripts.