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
priyanshipriyanshi 

FLS in Triggers

Hi

I have to submit an app for security review and want to know if CRUD and FLS need to be enforced manually for apex triggers as well? I am referring to the link below but it does not mention anything about triggers.
https://developer.salesforce.com/page/Enforcing_CRUD_and_FLS

Please help.
Thanks!
Ramu_SFDCRamu_SFDC
As per the best practice, all the trigger logic would be written in a helper class where we can enforce CRUD and FLS permissions. In the main trigger all we do is pass the new collection, old collection, map of new and old collection as required to that helper class.

Hope this helps!