Skip to content

scanOrgBindings

scanOrgBindings(connection, types): Promise<OrgScanResult>

Defined in: packages/simply-aep-core/src/at4dxOrgScan.ts:119

Query the target org for AT4DX Application Factory bindings, one SOQL query per requested binding type, run in parallel. These are ordinary queryable Custom Metadata records — plain REST (connection.autoFetchQuery), no Tooling API, no chunking (row counts are inherently small).

A type whose Custom Metadata Type doesn’t exist in this org fails with INVALID_TYPE; that’s reported via missingTypes rather than thrown, so the caller can distinguish “AT4DX isn’t here at all” from “AT4DX is here, this type just has no records configured yet.”

AepConnection

The org connection to query against.

BindingType[]

Which binding types to query for.

Promise<OrgScanResult>

The discovered bindings, diagnostics, and which requested types don’t exist in this org.