You need to sign in to do that
Don't have an account?
Andrew marshal 3
help me to create this trigger
If the Opportunity Product has a Status of "Shipped" , it checks the Category of the related Product and sets the Final Price based on the following criteria:
If the Category is "Category A", the Final Price is set to 80% of the Unit Price.
If the Category is "Category B", the Final Price is set to 90% of the Unit Price.
If the Category is not "Category A" or "Category B", the Final Price is set to the Unit Price.
If the Opportunity Product does not have a Status of "Shipped", the formula returns the existing value of the Final Price field.
If the Category is "Category A", the Final Price is set to 80% of the Unit Price.
If the Category is "Category B", the Final Price is set to 90% of the Unit Price.
If the Category is not "Category A" or "Category B", the Final Price is set to the Unit Price.
If the Opportunity Product does not have a Status of "Shipped", the formula returns the existing value of the Final Price field.
Please try with below code and let me know if you face in difficulty : Hope it helps !
Thank you.