Notifications
Clear all
Oct 18, 2022 6:47 am
How to fetch parent and grand parent values in salesforce cpq price rules to display in the quote line editor?
1 Reply
Oct 18, 2022 6:57 am
You can use the SBQQ__RequiredBy__c field which is a look up field and use its relationship field SBQQ__RequiredBy__r.
SBQQ__RequiredBy__c Links this line item to another line item in the same quote whose product requires this line item's product.
Sample formula on price rule action:
If( ( ISPICKVAL(SBQQ__RequiredBy__r.PBProductType__c, 'Template') ) ,SBQQ__RequiredBy__r.Tier1Multiplier__c , IF( ( ISPICKVAL(SBQQ__RequiredBy__r.PBProductType__c, 'Product') ), SBQQ__RequiredBy__r.SBQQ__RequiredBy__r.Tier1Multiplier__c , 0 ))
Reference:
CPQ Quote Line Fields (salesforce.com)