Creating a Consolidation Rule, Record Filter, and Grouping Method
You can create a consolidation rule with a related billing document filter and a consolidation grouping method as follows:
- Open the Consolidation Rules tab.
- Click New. The New Consolidation Rule dialog displays.
- Enter a name and a description for the consolidation rule.
- Leave the Record Filter and Consolidation Grouping Method fields empty.
- Click Save. The consolidation rule is now created.
- On the Billing Document Filter tab, click Search record filters and select New Record Filter.
- Enter a name for the record filter.
- Under Object API Name, enter fferpcore__BillingDocument__c.
- Click Save. The record filter is added to the consolidation rule.
- Define the record filter criteria. As a minimum, the filter must retrieve draft billing documents. To do this:
- In the Record Filter Criteria for Parent Record Filter section, click New. The New Record Filter Criteria dialog displays.
- For the Field API Name field, enter fferpcore__DocumentStatus__c. If you're not sure how to find the API name of a field, see How to Find a Field's API Name.
- For the Value field, enter Draft. This ensures that only draft billing documents are retrieved by the filter.
- Click Save. The filter criteria is now added to the filter.
- Repeat steps a-d with different fields and values to create additional filter criteria.
- On the Grouping Method tab, click Search consolidation grouping methods and select New Consolidation Grouping Method.
- Enter a name and a description for the grouping method.
- Click Save. The grouping method is added to the consolidation rule.
- Define the consolidation grouping fields. You must add any custom required fields. You do not need to include the Account, Company, Currency, Document Status, and Document Type fields because they are used automatically. To do this:
- In the Consolidation Grouping Fields for Parent Consolidation Grouping Method section, click New. The New Consolidation Grouping Field dialog displays.
- Enter a name for the grouping field.
- Enter the API name of the billing document field you want to use for consolidation, for example, fferpcore__ShippingAccountName__c. The field must exist on the Billing Document object. If you're not sure how to find the API name, see How to Find a Field's API Name.
- Repeat steps a-c with different values to create additional grouping fields.
With the consolidation rule fully set up, you can now run a consolidation process. For more information, see Consolidating Billing Documents Using Consolidation Rules.
How to Find a Field's API Name
- Open Setup.
- Click Object Manager.
- Click Billing Document.
- Click Fields & Relationships. The billing document fields display. The Field Name column displays the API name of each field.