Skip to content

Creating and Editing Value Builders

Value builders allow you to generate patterns for profile attributes, so that the selected attributes are populated with either random or systematic values. Value builders can be used as part of a Set Attribute Values step within a workflow.

Creating Value Builders

To create a value builder:

  1. Go to Admin > Templates > Value Builders.

  2. Select + Value Builder.

  3. Complete the following fields:

    • Name - Add a unique name for this value builder.
    • Uid - Add a unique identifier.
  4. Select create.

    The FORMULA tab is displayed. The formula is the pieces of your value builder In existing value builders, the current formula is displayed here.

  5. In the FORMULA section, in Add Attributes, search for and select attributes to include in the value builder's formula.

    When this attribute has been added to your formula, you will see the Selector dropdown list within the Formula section. Choose from the following options:

    • All - Use the entire contents of the selected attribute value in the value builder.
    • First - Use the first characters in an existing attribute value in the value builder. Select the number of characters in the Count dropdown list that appears.
    • Last - Use the last characters in an existing attribute value in the value builder. Select the number of characters in the Count dropdown list that appears.
  6. In Add Helper, select an option to assign additional values to the attribute.

    • Random Numbers - Add up to 10 random numbers to the attribute's value.
    • Static Value - Add a static string to attributes that use this value builder.
    • Incremented Number - Add an integer to the value builder that increases by 1 when the value builder is used.
    • Random String - Add up to 10 random Latin characters to the attribute's value.
  7. In the OTHER SETTINGS section, choose an option under Case Conversion.

    • none - Make no changes to the capitalization of the strings in the value builder.
    • lower - All letters in the attributes used in the value will be lowercase.
    • upper - All letters in the attribute value will be uppercase.
    • capital - The first letter of each string attribute used in the value will be uppercase. For example, the attribute "john smith" would be converted to "John smith" in the resulting value.
    • title - The first letter of each word in a string attribute used in the value will be uppercase. For example, the attribute "john smith" would be converted to "John Smith" in the resulting value.

    Static strings and random strings are not affected by Case Conversion settings.

    For example, the value builder formula in the screenshot below combines the first letter of a first name attribute, 3 random numbers, a period, the last name attribute, and the string @sample.com. These attributes and helpers are combined to form an email address.

    A sample value builder formula.

    Applied to the profile John Smith, this value builder might generate j423.smith@sample.com.

  8. Select save.

  9. (Optional) Test your value builder by choosing a profile in the TESTING section within the Profile field. A value will be generated based on your selections in the FORMULA section and displayed underneath the Profile field.

Editing Value Builders

You can view and edit existing value builders.

  1. Go to Admin > Templates > Value Builders.

  2. To export a JSON file containing the metadata about the selected value builders and any related configuration:

  3. Select the checkbox beside the value builders you want to export. To select all value builders, select the checkbox beside the VALUE BUILDERS header.

  4. Select the ellipsis icon next to Actions and select Export. When the file has been generated, select Download to save the metadata to a local file.

  5. To edit an individual value builder, select the name of the value builder.

  6. In the FORMULA section, make any necessary changes to the formula used in this value builder.

    Note

    If you make changes to an Incremented Number helper, the counter for that helper will be reset.

  7. In the INFO section, make any necessary changes to the name and UID for this value builder.

  8. Select save.

When your value builders are complete, you can add them to workflows using the Set Attribute Values action.