Skip to content

MetadataTriggerService

pozil edited this page Nov 14, 2024 · 11 revisions

MetadataTriggerService Class

Fields

objType

Signature

private objType

Type

String

Constructors

MetadataTriggerService(objectTypeName)

Signature

public MetadataTriggerService(String objectTypeName)

Parameters

Name Type Description
objectTypeName String

Methods

getMetadataTriggers()

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.

Admin's and Developers can selectively disable trigger handlers for all or selected individuals without deploying.

Signature

public List<Metadata_Driven_Trigger__mdt> getMetadataTriggers()

Return Type

List<Metadata_Driven_Trigger__mdt>


getSObjectType()

This determines the active sObject type by describing the first record in the trigger New / Old list

Signature

public static String getSObjectType()

Return Type

String

Classes

MetadataTriggerServiceException Class

Clone this wiki locally