Q20. What is the difference between a trigger and a workflow rule in Salesforce?
a) A trigger is a piece of Apex code that is executed when a record is saved, while a workflow rule is a declarative tool used to automate certain tasks.
b) A trigger is a declarative tool used to automate certain tasks, while a workflow rule is a piece of Apex code that is executed when a record is saved.
c) A trigger is used for server-side logic, while a workflow rule is used for client-side logic.
d) A trigger is used for client-side logic, while a workflow rule is used for server-side logic.