Related fields can be used to add custom formula fields to Intelligent Approval criteria. You can use related fields with:
- Approval process entry criteria
- Approval step entry criteria
- Re-approval criteria
- Child and search filters
- Approval rules criteria: both dimension and condition
- Approval rule entry criteria: approval and auto-reapproval conditions
When you configure a formula field to be used as a related field, it is automatically available with each of the criteria listed above.
To add business objects to a formula field picklist
- From Setup, select Create > Objects > Formula Field (Approvals).
- From Custom Fields & Relationships, click Business Object.
- From Picklist Values, click New.
- Enter the API name for the objects you will include, such as Apttus_Config2__ProductConfiguration__c and Apttus_Config2__LineItem__c.
- Click Save.
The API names are now added to the picklist values.
The next time you create or edit a formula field (Approvals) based on the values in step 4, product configuration and line item become available from the business object picklist.
To set up the Formula Fields (Approvals) picklist
Business object options beyond the default values must be added to the Formula Field (Approvals) business object picklist.
- Click All tabs and select Formula Fields (Approvals).
Click New and enter:
Option Description Field Name Name displayed in the Field list when setting entry criteria for a process, step filters, conditions, or re-approval criteria. Type Currently this value can only be "Relationship". Business Object This business context object relates to the approval process's or approval step's context object. The field is only available in a process or step when this value matches the process or step value. Available default values are Standard Agreement, Agreement Line Item, and Opportunity. Formula
Contains fields from the business object, such as Apttus_Config2__PriceListId__c for the configuration object's Price List field.
It can also be used for fields associated with the business object via a lookup field. For this, you must use
__rto indicate a relationship between the field and object. For example, Apttus_Config2__ConfigurationId__r.Apttus_QPConfig_ _Proposald__r.Payment_Term__c enables the Payment Term field to be used when Product Configuration is the business object.
You can use Salesforce's Insert Field dialog to build your formula and then copy and paste it to the Formula field. You can access the formula by creating a new field for the appropriate business object. This example shows the approval status for the Product Configuration object.
Description Enter information to state the formula field's purpose.
- Click Save.
The new field is added to the Formula Field (Approvals) list and can be included in an approval process.
When you go to add criteria in approvals, the Field list will display the related field, with the format Related(Field Name): Formula Field Label. For example,
Related(Price List): Price List.