Create a rule
management rulesOn this page
In this article, you will learn how to create a business rule to streamline the modification and management of your records.
Create a rule
The procedure for creating a rule is the same for all types of rules. However, the actions associated with each type of rule are different.
To create a rule
On the navigation pane, go to Management > Rule Builder.
Choose the type of rule that you want to create. Then, select Create Rule.
Enter the name of the rule, and then select Create.
The rule details page opens.
In the Filters section, select Add First Filter, and then specify to which properties or vocabulary keys the rule will be applied. For more information on how to set up a filer, see Filters.
In the Actions section, select Add Action, and then configure the action that will be performed on the records matching the filter:
Enter the name of the action.
In the Action section, choose the action to be performed by the rule. The information about the available actions for each rule is provided in Rules reference.
Depending on the chosen action, you might need to provide additional details.
In the lower-right corner, select Add Action.
Note: You can add multiple actions to the rule.
In the upper-right corner of the rule details page, select Save.
Activate the rule by turning on the toggle next to the rule status.
You created the rule. The rule will be applied to the records that match the rule’s filter when they are processed or reprocessed. Next, explore the available methods to reprocess the records, along with the various options for managing the rule.
Re-process records
There two ways to reprocess the records:
Reprocess the records using the GraphQL tool – use this approach if you need to re-process many records.
Reprocess each record manually – use this approach if you need to re-process few records.
To reprocess records using GraphQL
On the navigation pane, go to Consume > GraphQL.
Enter a query to re-process the records that should be affected by the rule.
For example, the following query will re-process all records that contain the “customer.location” vocabulary key set to “New York”.
{ search(query: "customer.location:New York") { entries { actions { postProcess } } } }
Execute the query.
After the query is executed, the rule’s action will be applied to the records matching the rule’s filter.
To reprocess records manually
Find and open the needed record.
In the upper-right corner of the record details page, select More > Re-process entity.
After the record is re-processed, the rule’s action will be applied to it.