Skip to content

createFieldSetInclusion

createFieldSetInclusion(input, target): Promise<At4dxFieldSetInclusionWriteResult>

Defined in: packages/simply-aep-core/src/at4dxFieldSetInclusionWrite.ts:218

Creates a new SelectorConfig_FieldSetInclusion__mdt record: validates the inputs, checks the DeveloperName doesn’t already exist in the scanned scope, runs it through validateFieldSetInclusions alongside everything already scanned, then writes (and optionally deploys) the generated .md-meta.xml.

See docs/design/0016-at4dx-selector-config-field-set-inclusion.md for the full behavior contract.

CreateFieldSetInclusionInput

CreateFieldSetInclusionTarget

Promise<At4dxFieldSetInclusionWriteResult>

See the error codes in FieldSetInclusionWriteErrorCode.