User-Defined Variables

User-defined variables correspond to the user-defined attributes set up for a request type.

You can define single-valued attributes as well as multi-valued attributes in list or table form. For information on formatting multi-valued attributes in tables, see Using Substitution Variable Syntax.

Use the following variables to signify a user-defined attribute:

- %<variable-name>%

  where <variable-name> is the name of the user-defined attribute that you want to substitute.

- %PRODUCT_<variable-name>%

  where <variable-name> is the name of the user-defined product attribute that you want to substitute.

- %<variable-name>_PROMPT%

  where <variable-name> is the name of the user-defined attribute that you want to substitute, and PROMPT indicates that you want to display the value of the attribute's Prompt field.

- %<variable-name>_BLOCKNAME%

  where <variable-name> is the name of the user-defined attribute that you want to substitute, and BLOCKNAME indicates that you want to display the value of the attribute's block name. This substitution applies to block attributes only.

The following example uses each type of variable. The first row uses the attributes' block name to label the table of attributes. The second row uses the attribute prompt names to label the column headings. The third row substitutes the actual values of the attributes.

| %CUSTOMERS_BLOCKNAME% ---------------------
%CUSTOMER_PROMPT% ----------------- | %PHONE_PROMPT% -------------- | %PRIORITY_PROMPT% -----------------
%CUSTOMER% | %PHONE% | %PRIORITY%

Block attributes

To define block attributes in a table, specify the block name as the table heading, as shown in the example above (%CUSTOMERS_BLOCKNAME%). Each attribute that you want to include in the table must have the same block name. Next, define each attribute name and value as a column heading and column. The order of the attributes must follow the order of the columns specified in the block attribute, from left to right. F or information on how to format columns, see Using Substitution Variable Syntax.

NOTE If you update the block attribute name or values, you need to update the block in the template.

Related Topics

Single-Valued Dimensions CM Variables

Multi-Valued Dimensions CM Variables