This page is describing the functionality of the current Marketing Campaigns experience. If you're using legacy Marketing Campaigns, your workflow and screens may be a little different. Learn more about migrating from legacy Marketing Campaigns here.
Custom Fields allow you to add extra information about a contact within your contact database when you upload a CSV. You can use custom fields to create dynamic segments or to personalize the subject lines or content of Marketing Campaigns emails you send. Your custom fields are completely customizable to the use cases and user information that you need.
You can create up to 500 custom fields.
To add a custom field:
The most common way to add custom fields is by including each custom field you'd like to add as a column in your CSV upload. If you'd like to add custom fields programmatically, see our API documentation
You can also add custom fields manually from the Custom Fields page.
The field name should be created using only alphanumeric characters (A-Z and 0-9) and underscores (_
). Custom fields should only begin with letters A-Z or underscores (_
). The field type can be date
, text
, or number
fields. The field type is important for creating segments from your contact database. Note: If you have created a custom field that begins with a number, you will need to recreate it with a name that begins with letters A-Z or an underscore (_
).
Custom fields that begin with a number will cause issues when sending with Marketing Campaigns.
You can create three different types of custom fields, based on the data type. Each data type will allow you to use different queries for segmentation:
Text custom fields are limited to 1,000 characters.
Your account comes preloaded with unremovable reserved fields. The following field names are all reserved:
Field Name | Field Type |
---|---|
first_name | text |
last_name | text |
text | |
phone_number_id | text |
external_id | text |
anonymous_id | text |
alternate_emails | text |
address_line_1 | text |
address_line_2 | text |
city | text |
state_province_region | text |
postal_code | text |
country | text |
phone_number | text |
text | |
line | text |
text | |
unique_name | text |
As of April 2024, the following fields have been deprecated for new contacts but are still accessible for contacts added prior to that time:
whatsapp
line
facebook
unique_name
SendGrid auto-populates 6 reserved fields:
lists
created_at
updated_at
last_emailed
last_clicked
last_opened
Reserved fields are used by default to track useful metrics for your contacts.
To delete a custom field:
This deletion process may take several minutes; you will continue to see the custom field on this page until the process completes.
Deleting a custom field deletes all values for that field across your contact database. It will also break Single Sends or Automation emails using the custom field as a tag or segments using the field as a condition. See below for details.
If a deleted custom field is used as a tag within a Single Send or Automation email as part of the subject line or body copy, the email will send with the default value you've designated or the fallback "default". If you have deleted the fallback, the email will not display anything at all in place of the deleted custom field.
If a deleted custom field is used as criteria within a segment the segment will fail to load. Neither Single Sends nor Automation emails will be able to be sent to the segment using the deleted custom field.
If a custom field value does not appear in the corresponding Substitution Tag, make sure that there is a value for that custom field associated with the contact in your contact database. If there is no value for a particular custom field, a space will be substituted instead.
If you do find that the custom field has an associated value on the contact's profile page, check the spelling of the substitution tag in the content of your campaign.