Skip to content

validateFieldSetInclusions

validateFieldSetInclusions(scan): FieldSetInclusionIssue[]

Defined in: packages/simply-aep-core/src/at4dxFieldSetInclusionResolve.ts:197

Validate a scan’s SelectorConfig_FieldSetInclusion__mdt records for wiring problems list doesn’t fail on: a record with no resolvable SObject, an ambiguous SObject reference, a SObject reference naming a standard object that can’t actually go through EntityDefinition, two records sharing a FieldsetName__c (unique org-wide, not per-SObject), and the same DeveloperName defined more than once.

Unlike binding list/resolve, there’s no priority/winner concept here to validate around — every active record for a SObject contributes its field set simultaneously (see docs/design/0016-at4dx-selector-config-field-set-inclusion.md).

Pick<FieldSetInclusionLocalScanResult, "records" | "malformed" | "ambiguous">

FieldSetInclusionIssue[]

One issue per problem found. Empty when nothing’s wrong.

validateFieldSetInclusions(records, diagnostics): FieldSetInclusionIssue[]

Defined in: packages/simply-aep-core/src/at4dxFieldSetInclusionResolve.ts:200

Validate a scan’s SelectorConfig_FieldSetInclusion__mdt records for wiring problems list doesn’t fail on: a record with no resolvable SObject, an ambiguous SObject reference, a SObject reference naming a standard object that can’t actually go through EntityDefinition, two records sharing a FieldsetName__c (unique org-wide, not per-SObject), and the same DeveloperName defined more than once.

Unlike binding list/resolve, there’s no priority/winner concept here to validate around — every active record for a SObject contributes its field set simultaneously (see docs/design/0016-at4dx-selector-config-field-set-inclusion.md).

RawFieldSetInclusionRecord[]

The malformed/ambiguous records the same scan reported alongside records. Omitted when the first argument is already a scan envelope.

AmbiguousFieldSetInclusionRecord[]

MalformedFieldSetInclusionRecord[]

FieldSetInclusionIssue[]

One issue per problem found. Empty when nothing’s wrong.