Skip to content

scanOrgApexTriggers

scanOrgApexTriggers(connection): Promise<RawApexTriggerRecord[]>

Defined in: packages/simply-aep-core/src/at4dxApexTriggerOrgScan.ts:41

Query the target org for every Apex trigger, parsing each Body the same way scanLocalApexTriggers parses a .trigger file — for its target SObject and any fflib_SObjectDomain.triggerHandler(...) calls. See docs/design/0036-at4dx-domain-binding-trigger-validate.md.

A trigger whose Body doesn’t parse as trigger X on Y (...) at all is skipped, matching scanLocalApexTriggers.

AepConnection

The org connection to query against.

Promise<RawApexTriggerRecord[]>

Every Apex trigger found, normalized.