Custom fields are used to add additional information to people and companies inside a group. They are group specific, and their name must be unique within the group. For instance, you can have a custom field called “Status” in the “Clients” group and another field called “Status” in the “Partners” group.
Field types
folk supports the following types of custom fields:textField: Used for short descriptions or names.numericField: Used for numbers, optionally formatted with a currency symbol.dateField: Used for calendar dates.singleSelect: Used for a single value from a predefined list of options.multipleSelect: Used for multiple values from a predefined list of options.contactField: Used to store a reference to other contacts in the same workspace.userField: Used to store a reference to a workspace member.objectField: Used to link deals to a contact.
Custom field format in the API
Since custom fields are always group specific, when retrieving or setting their values on people or companies, their values are always grouped by their group ID. When retrieving a person or a company through the API, the response will contain acustomFieldValues object with the group ID as the key and the custom field value as the value.For instance, the response for a person inside a group called “Clients” with id
grp_79b6ed73-9939-4118-ba65-7f8cdf401052 and a custom field called “Status” of type select will look like this:
customFieldValues object will contain all the custom fields grouped by their group ID:
customFieldValues object will contain the custom field key with a null value.
When removing a person from a group, the corresponding custom field values
will be removed as well.