Partager via


How to Add a Custom Attribute to a Profile Property

The Profiles Schema Manager provides each property with attributes that store characteristics of the property, such as the property name (City) and the property type (string). Besides the property attributes provided by the Profiles Schema Manager, you can also define custom attributes for properties. For example, you can create a custom attribute that controls how you can use a property on a Web site.

To add a custom attribute to a profile property

  1. Expand Commerce Server Manager, expand Global Resources, expand Profiles, expand Profile Catalog, expand Profile Definitions, and then click the profile definition that contains the property to which you want to add a custom attribute.

  2. In the Commerce Server Manager, in the right pane, in the Properties list, select the property to which you want to add a custom attribute.

  3. In the Commerce Server Manager, in the right pane, in the Custom Attributes section, click New.

  4. In theCommerce Server Manager, in the right pane, in the Custom Attributes section, do the following:

    Use this

    To do this

    Name

    Type a programmatic name for the custom attribute. The name can contain a maximum of 127 alphanumeric characters and the underscore (_) symbol. The name cannot contain spaces.

    Display Name

    Type a display name that contains a maximum of 127 Unicode characters.

    Description

    Type a description for the attribute. The description can contain a maximum of 127 Unicode characters.

    Value

    Type the value of the attribute.

  5. Click Accept, and then click Apply.

  6. To save the profile definition, click the Save icon on the toolbar.

The profile definition is saved with the custom attribute.

See Also

Other Resources

Managing Profile Properties

How to Use the Profiles Schema Manager

About the Profiles Schema Manager