CPQ – QLE – QCP – Update Group Values!

If you’re here you’re eagerly trying to figure out how to update Quote Line Group values in a price rule. Unfortunately, you can’t. Yet. But you can in a QCP! Here’s a basic sample that copies the Quote Account value into the Quote Line Group Account field.

export function onAfterCalculate(quote, lines, conn) {
    quote.groups.forEach(function(group) {
        if (group.record != null) {
            group.record['SBQQ__Account__c'] = quote.record['SBQQ__Account__c'];
    return Promise.resolve();



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.