validateFieldSetInclusions
Call Signature
Section titled “Call Signature”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).
Parameters
Section titled “Parameters”Pick<FieldSetInclusionLocalScanResult, "records" | "malformed" | "ambiguous">
Returns
Section titled “Returns”One issue per problem found. Empty when nothing’s wrong.
Call Signature
Section titled “Call Signature”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).
Parameters
Section titled “Parameters”records
Section titled “records”diagnostics
Section titled “diagnostics”The malformed/ambiguous records the same scan reported alongside records. Omitted when the first argument is already a scan envelope.
ambiguous
Section titled “ambiguous”AmbiguousFieldSetInclusionRecord[]
malformed
Section titled “malformed”MalformedFieldSetInclusionRecord[]
Returns
Section titled “Returns”One issue per problem found. Empty when nothing’s wrong.