We extended the attribute framework in Retail headquarters to support attributes for customers, customer orders, cash-and-carry transactions, and call center orders.
The attributes are read-only. However, in the case of customer or order attributes, you can edit and set values at the level of the individual customer or order.
The new customer attribute framework lets you use configurations to add new fields to the customer master record. Those fields then automatically appear on the Customer add/edit or Customer details screen in Point of Sale (POS) or Retail headquarters. After you configure the customer attribute group in the Retail parameters, POS and Retail headquarters automatically show the new attribute. No code change or customization is required. You can also use the screen layout designer to configure the customer card on the POS transaction screen so that it shows the customer attributes.
Why and when you should configure customer attributes
If you want to add new fields to the customer master record, and capture the information in POS or Retail headquarters, you can use this feature. Previously, to add a new field to the customer master record and show it in POS and Retail headquarters, you had to create a new extension table in Retail headquarters and the channel database, and make inline modifications to Commerce runtime (CRT) and POS code. You had to write code in CRT and POS to read/write to the extension fields and show them in POS. You had to handle this in various POS views and scenarios, such as the Customer details screen and the Customer panel on the transaction screen. In addition, in CRT, you had to handle all insert, select, and update operations. However, the new functionality lets you complete all these steps through configuration. You don't have to write any code or create custom extension tables in Retail headquarters or the channel database.
The first version of this functionality doesn't support datetime and reference attribute types. For those attribute types, you should use extension properties and custom controls to show the details in POS.
Configure customer attributes in POS and Retail headquarters
Define attribute types
- Select Product information management > Setup > Categories and attributes > Attribute types.
- On the Attribute types page, select New to add a new attribute type.
- Enter a name for the attribute type.
- On the General FastTab, in the Type field, select the type of data that can be entered for attributes that are assigned to this data type.
- If the attribute type is Decimal or Integer, select a unit of measure.
To define a fixed list of values for the attribute type, select the Fixed list check box. Then, on the Values FastTab, add the list of values.
The Fixed list check box is available only for the Text attribute type.
Alternatively, to define a range of valid values for the attribute type, select the Value range check box. Then, on the Range FastTab, enter the valid range of values.
- Select Product information management > Setup > Categories and attributes > Attributes.
- On the Attributes page, select New to add a new attribute.
- Enter the name, friendly name, description, and any Help text that should be shown to the user for the attribute.
- In the Attribute type field, select the attribute type to assign to the attribute.
- Depending on the attribute type, in the Default value field, enter the value or the range of values that is shown by default when this attribute is assigned to a customer.
- Select Translate to open the Text translation page, where you can enter the name, description, friendly name, and Help text for the attribute in additional languages.
- Repeat steps 2 through 6 to add more attributes.
Define an attribute group
- Select Product information management > Setup > Categories and attributes > Attribute groups.
- On the Attribute groups page, select New to add a new attribute group.
- Enter the name, and then, on the General FastTab, enter the friendly name, description, and any Help text for the attribute group.
- On the Attributes FastTab, select Add to add attributes to the attribute group. In the Default value field, you can enter a default value for the selected attributes.
- Select Translate to open the Text translation page, where you can enter the description, friendly name, and Help text for the attribute group in additional languages.
Link the attribute group to the customers in the Retail parameters
- Select Retail > Headquarters setup > Parameters > Retail parameters.
- On the General tab, in the Customer attribute group field, select the attribute group that should be shown in POS.
Run the distribution jobs
- Select Retail > Retail IT > Distribution schedule.
- Select the Customers job (1010), and then, on the Action Pane, select Run now. When you're prompted, select Yes.
- Select the Global configuration job (1110), and then, on the Action Pane, select Run now. When you're prompted, select Yes.
View customer attributes
- Select Retail > Customers > All customers.
- On the Action Pane, on the Retail, in the Attribute section, select Retail attributes to view or edit the attribute values.
- Start POS, and then either open the Customer Add/Edit screen to set or update the attribute values for the customer, or open the Customer details screen to view the configured attributes.
Show customer attributes in the POS transaction screen
- Select Retail > Channel setup > POS Setup > POS > Screen layouts.
- On the screen layout page, select New to create a new screen layout, or select an existing screen layout.
- Enter the ID and name for the screen layout.
- On the Layout sizes FastTab, select the Add button to add new layout sizes for the POS.
- In the Name field, select the POS screen resolution.
- On the Layout sized FastTab, select the Layout designer button.
- If you're prompted, select Yes to download and install the Retail Designer Host by using the Install/Run button.
- When you're prompted, enter the Microsoft Dynamics 365 user name and password to start the designer.
- After the designer is started, drag the Customer card anywhere in the screen layout designer.
- Right-click the Customer card, and then select Customize.
- When the page for the Customization - Customer card appears, select the required attributes in the Available columns section, and then select the right arrow button (>) to move them to the Selected columns section. You can move the attributes up or down by selecting the Up or Down buttons.
- When you've finished, select OK to save your changes.
- Close the screen layout designer by selecting the Close button (X) in the upper-right corner. When you're prompted, select Yes to save your changes.
- Select Retail > Retail IT > Distribution schedule.
- Select the Registers job (1090), and then, on the Action Pane, select Run now. When you're prompted, select Yes.
- Start POS, and add a customer to a transaction.
- Open the transaction screen to view the attributes that have been added.