When will you use Apex Logic?
-
Zip Code object stores all the zip information. For an Object, when a zip is entered, it should be validated against the available Zip Codes
-
User places an Order, the details of which are checked in runtime against details in the database w.r.t . Price and Quantity and if everything is Ok, the order details are placed in another object.
-
Option 3
-
Option 4
This scenario requires complex, runtime business logic that validates data against database records - something that cannot be achieved through declarative Salesforce configuration alone. Apex Logic is needed for the programmatic validation of order details against current database values like price and quantity. Option A describes simple validation that could potentially be handled declaratively, while Option B requires the flexibility of imperative Apex code to query and compare data at runtime.