How to Display a Custom Profile Property in the Customer and Orders Manager

This topic describes how to create a custom property on a UserObject profile, and then view the property in the Customer and Orders Manager.

You must first create the custom property, edit modify the PresentationInfo XML file(s), and reset IIS before you can view the property in the Customer and Orders Manager.

To create a custom property on a UserObject profile

  1. Click Start, point to All Programs, point to Microsoft Commerce Server 2009 R2, and then click Commerce Server Manager.

  2. In Commerce Server Manager, locate the Profiles global resource for your site.

  3. Click your Profiles global resource, click Profile Catalog, click Profile Definitions, and then click User Object.

  4. In the right pane, click General Information, and then click Add to define a new property in this group.

  5. In the Add -- Web Page Dialog dialog box, select Add a new property, and then click OK.

    The property New Property 1 appears in the list of properties under General Information.

  6. In the Detailed Information section, expand the Advanced Attributes section, in the Map to data box, click the ellipsis [...] button.

  7. In the Data Source Picker -- Web Page Dialog dialog box, click ProfileService_SQLSource, click User Object, click Custom Property 1, and then click OK.

  8. In the Detailed Information section, in the Attributes section, in the Name box, type Gender. In the Display name box, type Gender. In the Description box, type a general description for the property, and then click Apply.

  9. Click Save on the toolbar to save the User Object profile definition.

To modify the PresentationInfo files

  1. Move to the file directory where the Profiles Web service for your site points to, and open the en_PresentationInfo.xml file in a text editor, such as Notepad.

  2. Locate the <profile> section and under the <displayArea> section, add a <property> element for the previously defined Gender property. The <property> element to add should resemble the following:

    <profile name="UserObject" displayName="User Object" description="User Object">
    <displayArea name="main" displayName="Main">
    <property name="Gender" displayName="Gender" description="Property to track Gender of user"/>  
    
  3. Run the IISReset command and then refresh the Customer and Orders Manager.

    When you open an existing user object in the Customer and Orders Manager or when you create a new user object, the new Gender property will be available for use.

See Also

Other Resources

Managing Your Profiles

Concepts and Tools for Business Users