-
Notifications
You must be signed in to change notification settings - Fork 13
MetadataTriggerQueryService
STATUS: ACTIVE
Class encapsulates the querying of Metadata_Driven_Trigger__mdt records on behalf of the MetadataTriggerHandlerClass class. It is not intended to be used directly by developers.
Constructor for trigger query service
Param | Description |
---|---|
objectTypeName |
String The object Type name |
Initialize objectTypeName as an empty string to avoid null errors
SUPPRESSWARNINGS
This query finds an ordered list trigger handler classes to execute. It ignores any classes that are marked as disabled.
Note: It will exclude any triggerHandler metadata records for which the user's email address is found in a related disabled_for__mdt
record.
Admins and Developers can selectively disable trigger handlers for all or selected individuals without deploying.
Type | Description |
---|---|
List<Metadata_Driven_Trigger__mdt> | List<Metadata_Driven_Trigger__mdt> |
This determines the active sObject type by describing the first record in the trigger New / Old list
Param | Description |
---|---|
triggerNew |
List The trigger.new list |
triggerOld |
List The trigger.old list |
Type | Description |
---|---|
String |
String the ObjectType name |
Exception | Description |
---|---|
MetadataTriggerFrameworkException |
when both triggerNew and triggerOld are null |