Can you please provide the best practice to write price Rule if we are using the formula field for calculations on Quote line Editors?

The Problem I am facing: Sometimes my calculation button is working sometimes not after adding a few product rules.

Thanks in Advanced


1 Answer 1


The first thing, it's very important to order Price rules by events (On Initialization, Before Calculate, On Calculate, After Calculate). It means you, actually, controls what and when should be calculated. Salesforce itself doesn't recommend to have more then 50 price rules - otherwise, it will influence UI perfomance.

Other suggestions are applied to specific field calculations (dates, formula, currency etc). For example, for date fields you can only use data format as follows YYYY-MM-DD.

This documentation holds other suggestions that you may need consider.

Please take a look at this post about Price Rules debugging.

You must log in to answer this question.

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