Borrows objects from the main configuration into the extension. Creates XML files with ObjectBelonging=Adopted и ExtendedConfigurationObject, adds an entry to the extension's ChildObjects.
Precondition
The extension must be created (/cfe-init) and contain a valid Configuration.xml.
Parameters
| Parameter | Description |
|---|---|
ExtensionPath |
Path to the extension directory (required) |
ConfigPath |
Path to the source configuration (required) |
Object |
What to borrow (required), batch via ;; |
Format -Object
Catalog.Контрагенты— catalogCommonModule.РаботаСФайлами— common moduleDocument.РеализацияТоваров— documentEnum.ВидыОплат— enumerationCatalog.X ;; CommonModule.Y ;; Enum.Z— multiple objects All 44 configuration object types are supported.
Command
powershell.exe -NoProfile -File .claude/skills/cfe-borrow/scripts/cfe-borrow.ps1 -ExtensionPath src -ConfigPath C:\cfsrc\erp -Object "Catalog.Контрагенты"
Examples
# Заимствовать один объект
... -ExtensionPath src -ConfigPath C:\cfsrc\erp -Object "Catalog.Контрагенты"
# Несколько объектов за раз
... -ExtensionPath src -ConfigPath C:\cfsrc\erp -Object "Catalog.Контрагенты ;; CommonModule.ОбщийМодуль ;; Enum.ВидыОплат"
Verification
/cfe-validate <ExtensionPath>