You can extend the standard categories for messages. By defining custom categories, you can create and classify messages in a way that is specific to your business.
Create a field value for your custom category.
Click + Create > Data Model > Field Value to open the Create form.
In the Label field, enter [custom category name].
In the Field Name field, enter pyCategory.
In the Apply to field, enter Rule-Message.
Click Create and open.
Create a field value for the caption of your custom category.
Click + Create > Data Model > Field Value to open the Create form.
In the Label field, enter [custom category name].
In the Field Name field, enter pyCaption.
In the Apply to field, enter Rule-Message.
Click Create and open.
Optional: To prompt users for more input when they select your custom category, create a custom section.
Find and open the standard Rule-Message.pyCustomDetails section by searching for it or by using the Application Explorer.
Click Save as > Specialize by circumstance to open the Specialization form.
Click Property and Date.
In the Property field, enter pyCategory.
In the Value field, enter the name of your custom category.
Click Create and open to open the Section form.
Update the section with references to properties in the Rule-Message class, so that it collects information that is relevant to your custom category.
For example, you can add a text box to a layout in the section and then associate it with a property that stores text.
Click Save.
Optional: To validate the values that users provide at run time, create validation logic that is specific to your custom category.
Find and open the standard Rule-Message.pyValidateFields edit validate rule by searching for it or by using the Application Explorer.
Click Save as > Specialize by circumstance to open the Specialization form.
Click Property and Date.
In the Property field, enter pyCategory.
In the Value field, enter the name of your custom category.
Click Create and open to open the Edit Validate form.
Add criteria to the rule that evaluates the properties that your custom section references.
Click Save.
You can test your changes by creating a message and verifying that your custom category is one of the available options.