The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Create a Subscriber Attribute

This page contains information about creating a subscriber attribute.

Subscriber attributes contain specific information about your subscribers, such as first and last name, gender, and geographical location. You can assign specific information as part of a subscriber attribute to be used as part of sends or subscriber management. Use the information to better target your sends and include only the subscribers you wish in certain groups. For example, you can create a subscriber attribute called Sales Region, assign subscribers to those regions, then conduct sends to specific groups instead of all subscribers.

Use the sample code below as models for your own API calls. The number of subscriber attributes that can be created on an account is defined during account configuration. More subscriber attributes can’t be added to an account without re-configuring the number available for the account. Contact your Account Executive for more information about changing the number of subscriber attributes available on your account.

The sample code below demonstrates how to create attributes for On Your Behalf and Lock and Publish accounts.

The code below creates a new attribute for subscribers: