Salesforce Fact #525 | Setting application mode in test class
Do you know there is a method called setReadOnlyApplicationMode() in Test class in apex which is used to set the application mode for only read operations to simulate the behavior during service upgrade or maintenance. We cannot perform any data updates i.e. are not allowed to perform any DML operations once this scope is enabled.
Attached is the screenshot.
Comments
Post a Comment