Skip to content

scanLocalDomainProcessBindings

scanLocalDomainProcessBindings(sourceDirs): DomainProcessLocalScanResult

Defined in: packages/simply-aep-core/src/at4dxDomainProcessLocalScan.ts:118

Scan local Salesforce DX source directories for AT4DX DomainProcessBinding__mdt records, parsing each CustomMetadata component’s <values> pairs directly — the same approach at4dxLocalScan.ts uses for Application Factory bindings.

Unlike an org (see at4dxDomainProcessOrgScan.ts), local source gives no signal for “this Custom Metadata Type doesn’t exist” independent of “zero records exist for it” — a missing customMetadata folder and an empty one look identical to ComponentSet.fromSource. Callers treat an empty result as “AT4DX’s Trigger Action Framework isn’t configured here.”

string[]

The source directories to scan.

DomainProcessLocalScanResult

The discovered bindings, plus the malformed/ambiguous diagnostics validateDomainProcessBindings consumes.