Set up data augmentation rule
Learn how to set up data augmentation rules in Zuora Revenue to modify transaction source data before collection, including advanced, clear value, constant, formulae, and lookup rules.
The purpose of data augmentation is to modify the transaction source data before the data collection process starts in Zuora Revenue. Set up data augmentation rules according to your business needs. The following types of data augmentation rules can be defined in Zuora Revenue.
Rule type |
Description |
---|---|
Advanced Rule |
This type of data augmentation rules updates the same target field to different values for different lines. You use a rule set to define the criteria to filter the lines and the corresponding target value. |
Clear Value |
This type of data augmentation rules clears an attribute value for the filtered lines. |
Constant |
This type of data augmentation rules updates an attribute value to a specified constant value for the filtered lines. |
Formulae |
This type of data augmentation rules updates an attribute value based on a formula for the filtered lines. |
Lookup |
This type of data augmentation rules updates an attribute value based on a lookup. For example, if a reference field is found to be the specified reference value, the system will update the target field to the specified target value. |
Prerequisites
Before you set up the data augmentation rule, complete the following steps:
- Add RPRO_RC_TRNSLTR_RULE_PKG.trnsltr_rule_wrapper as a processor to use the defined data augmentation rule.
- Navigate to Setups > Application.
- Click to the left pointing arrow to open the side menu and then click Pre/Post Processor.
- To add a processor, click the New Processor icon.
- In the New Processor window, specify a unique procedure name, select RC_COLLECT for the Object Type field.
- Ensure the Enable switch is toggled to Yes and then click the save icon .
- Click the Processor Mapping tab to add a procedure.
- Click to add a row. Select Procedure for the Processor Type column, enter RPRO_RC_TRNSLTR_RULE_PKG.trnsltr_rule_wrapper in the Processor Object column and select Before Validate for the Stage Name column.
- Click the Save icon and close the window.
- Enable the CUSTOM_CODE_ALLOWED profile.
- Navigate to Setups > Application.
- Click to open the side menu and then click Profiles.
- Find the CUSTOM_CODE_ALLOWED profile and make sure the system-level value of this profile is Yes.