After adding @ReadOnly annotation before the global method throws the following error.
Error: Compile Error: Managed identifier can not change its ReadOnly setting at line xx column xx
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
@ReadOnly annotation changes the specification of the method, you will only be able to change the definition between major versions of your app, not patch releases.
Additionally, if your
global method is a
Web Service or
@RemoteAction, etc. you will not be able to change it's definition at all, and will have to define a new method.