function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dee Dee AaronDee Dee Aaron 

Ability to use tiered pricing without CPQ

Hi there,
We’re looking to create tiered pricing without using a full-blown CPQ solution.
We sell equipment models with different speeds. When a different speed is entered, we want the pricing to autofill.
Note: We don’t want to create separate products to accommodate this because there would be way too many products (speeds range from 3 to 10,000).
What we’re looking for: IF a rep enters a speed of 100/100, then enter the product price as $XXX.XX
Thank you for your help! Would I need to use a trigger to do this? What would you recommend?
Thank you for your help!
ShirishaShirisha (Salesforce Developers) 
Hi Dee,

Greetings!

Yes,you can achieve this by creating the after insert/after update trigger where you can update the field based on the other value given while inserting or updating the record.

Please refer the sample code given in the below blog to make changes according to your requirement.

https://www.veonconsulting.com/apex-trigger-in-salesforce/#:~:text=Here%20my%20requirement%20is%20to,based%20on%20the%20condition%20provided.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri