Sample Payload for Creating or Appending Attributes With Display Labels (Without Specifying the Member-Attribute Mapping)
  • 1 Minute to read
  • Dark
    Light
  • PDF

Sample Payload for Creating or Appending Attributes With Display Labels (Without Specifying the Member-Attribute Mapping)

  • Dark
    Light
  • PDF

Article summary

This sample appends an attribute named Product_Type and its hierarchy, and assigns Display Labels for each member of the attribute hierarchy.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<attribute-payload>
<model-name>Sales</model-name>
<dimension-name>Products</dimension-name>
<attribute-name>Product_Type</attribute-name>
<delimiter>@</delimiter>
<attribute-members>
<!-- member code @ member parent @ member display label [optional] -->
<member>All_types@All_types@All Types</member>
<member>Android@All_types@Google Android</member>
<member>iOS@All_types@Apple iOS</member>
<member>Other@All_types@Other OS</member>
<member>Windows@Other@Microsoft Windows</member>
<member>Unknown@Other@Unknown Brand</member>
</attribute-members>
</attribute-payload>

Was this article helpful?