Share via


Adding a Custom Attribute to a Profile Property

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

For example, if you are accessing the Widgets virtual directory to modify your profile definitions on a site that has Secure Socket Layers (SSL) enabled, change the to HTTPS.

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 profile designer screen, in the Properties list, select the property to which you want to add a custom attribute.
  3. In the profile designer screen, in the Custom Attributes section, click New.
  4. In the profile designer screen, 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 the name you want displayed for the attribute. The display name can contain 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 Save on the toolbar.

The profile definition is saved with the custom attribute.

Copyright © 2005 Microsoft Corporation.
All rights reserved.