Hi I'm wondering how to find out if Product with Name for example 'Test' exist in our quote lines? :)

I'm trying function forEach on quoteLines but I don't what to do later. Do anyone actually has some good resources to learn QCP? The documentation is not really big

  • When and where do you want to know that? That's a job for price rules. Price rules allows you to check complex stuff like your requirement and execute an action if the product name is found. Commented Oct 22, 2019 at 9:17
  • QCP - Quote Calculator Plugin I'm using JavaScript plugin and it's for training purpose Commented Oct 22, 2019 at 9:19
  • Price rules are exactly what you need: help.salesforce.com/… You can choose to execute the action before, during or after the calculation on the quote calculator. Commented Oct 22, 2019 at 9:21
  • You should probably add further details to your question and add your solution as an answer. Commented Oct 22, 2019 at 9:28

1 Answer 1


(quoteLines != null) { quoteLines.forEach(function (line) { let productName = line.record["SBQQ__ProductName__c"]; if(productName == 'test'){ console.log('I have test!'); } }); }

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .