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
sunny sengar 17sunny sengar 17 

opportunity record can not be edit.

Hi @all,
My requerment is, Supposed if we have 4 opportunity related to an account, and any Opporunity stage is "Closed won" than no one can edit the all opportunity associted with Account except system admin. Thank
Shiraz HodaShiraz Hoda
Hi Sunny,

You can build the logic in before update and check if for edited opportunity, any other opportunity associated with the account exists. If yes, throw error or else proceed with your logic.