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
Andrew marshal 3Andrew marshal 3 

trigger on Opportunity and probability

Please help me to write a trigger on opportunity stage and probability to prevent the opportunity stage from giving a lesser value
Best Answer chosen by Andrew marshal 3
SubratSubrat (Salesforce Developers) 
Hello Andrew ,

You don't need a trigger for this. You can do this with a validation rule. Here's an example rule that you could work with and modify:

https://trailhead.salesforce.com/de/trailblazer-community/feed/0D54S00000A7SPhSAN

If the above information helps , please mark this as Best Answer.
Thank you.