Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Adding custom attributes to treatment form

Updated on August 4, 2022

You can add custom attributes to treatment form to describe additional characteristics of the treatment.

Note: Custom attributes cannot be added to Internal Email and Internal SMS treatments.
Pega Customer Decision Hub
  1. Log in to Pega Customer Decision Hub portal.
  2. Add new custom property to the Next-Best-Action Designer Taxonomy.
  3. Update the Treatment decision data rule (DDR):
    1. Click ContentTreatments.
    2. Click Manage treatments.
    3. On the treatment rule form, click the Form tab.
    4. In the Form fields section, review the list of properties which are available as fields on the treatment form.
      • To add a field, click the Add field button.
      • To remove a field, click the Remove property icon.
        Tip: Any new properties that you add to the form are automatically available for all previously created treatments.
  4. Switch to Dev Studio.
  5. Add the property to the Treatment section:
    1. Search and open the custom extension section corresponding to the channel of the treatment to which you want to add the custom properties to. The name of custom extension section is of the format Custom<Channel>TreatmentElement, for example CustomWebTreatmentElement.
    2. Save the section into your implementation ruleset by clicking Save as.
    3. On the Design tab of the new section, add the property that you created.
  6. Update the <Web/Mobile/Assisted/Other>TreatmentStrategy or <Email/SMS/Push>TreatmentStrategy:
    1. Search for and open the <Web/Mobile/Assisted/Other>TreatmentStrategy, <Email/SMS/Push>TreatmentStrategy.
    2. Save the strategy into your implementation ruleset.
    3. In the Top Level SR class field, select the strategy result.
    4. On the Strategy tab, open the <Channel> Treatment Library component.
    5. In the Decision data > Import section, clear the Decision Data field, and then re-select the <Channel>Treatments decision data rule.

      This updates the value of the Results in class field to your top-level SR class, for example, <Application>-SR class.

    6. On the Mapping tab of the component, click Remap properties, and then click Submit.
    7. Open the Join Treatment Library component.
    8. On the Properties mapping tab of the component, click Add item to add the property that you created, and then click Submit
      Tip: If the property is not visible, switch to another component, and then switch back to the Join Treatment Library component.
  7. Configure the custom property in the real-time container response. Follow step 2 onwards as described in Setting the custom property in a real-time container response.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us