Skip to main content

DuplicateBillOfMaterial

Duplicate Bill Of Material.

Overview

Duplicate one FSBillOfMaterial object to one or more FSBillOfMaterial objects using the specified Company, Department, Item Class, Item Variant and Bill Of Material Version information. The procedure can create one or more copies.

Urlapi/public/FluentisErp/WM/Common/DuplicateBillOfMaterial
HTTP MethodPOST
Method TypeOperation
Fluentis ObjectFluentis.FluentisErp.Core.WM.FSBillOfMaterial

Request parameters

ParameterTypeIs RequiredDefault ValueDescription
FromBillOfMaterialIdintegerNoIdentify Source FSBillOfMaterial object using Id.
FromBillOfMaterialExternalIdstringNoReference to External Id for Bill Of Material identification
FromBillOfMaterialExternalSystemstringNoReference to External System for Bill Of Material identification
FromItemIdintegerNoIdentify Source FSBillOfMaterial object using the Id of the FSItem referenced object.
FromItemCodestringNoIdentify Source FSBillOfMaterial object using the Code and Class Code of the FSItem referenced object.
FromItemClassCodestringNoIdentify Source FSBillOfMaterial object using the Code and Class Code of the FSItem referenced object.
FromItemVariantIdintegerNoIdentify Source FSBillOfMaterial object using the Id of the FSItemVariant referenced object.
FromItemVariantCodestringNoIdentify Source FSBillOfMaterial object using the Code of the FSItemVariant referenced object.
FromBillOfMaterialVersionIdshortNoIdentify Source FSBillOfMaterial object using the Id of the FSBillOfMaterialVersion referenced object.
FromBillOfMaterialVersionCodestringNoIdentify Source FSBillOfMaterial object using the Code of the FSBillOfMaterialVersion referenced object.
ToCompanyIdshortNoIdentify Destination company using Id.
ToCompanyCodestringNoIdentify Destination company using Code.
ToDepartmentIdshortNoIdentify Destination department using Id.
ToDepartmentCodestringNoIdentify Destination department using Code.
ToItemIdintegerNoIdentify Destination Item using Id.
ToItemCodestringNoIdentify Destination Item using Code and Class Code.
ToItemClassCodestringNoIdentify Destination Item using Code and Class Code.
ToItemVariantIdintegerNoIdentify Destination Variant using ItemVariantId.
ToItemVariantCodestringNoIdentify Destination Variant using ItemVariantCode.
ToBillOfMaterialVersionIdshortNoIdentify Destination Version using BillOfMaterialVersionId.
ToBillOfMaterialVersionCodestringNoIdentify Destination Version using BillOfMaterialVersionCode.
DuplicatePhasesbooleanNofalseDecide if the phases will be duplicated.
DuplicateAlternativesbooleanNofalseDecide if the alternatives will be duplicated.
DuplicateExtraDatabooleanNofalseDecide if the extra data will be duplicated.

Bill Of Material Identification

Is enough to specify FromBillOfMaterialId or FromBillOfMaterialExternalId and FromBillOfMaterialExternalSystem or a combination of the following: FromBillOfMaterialVersionId or FromBillOfMaterialVersionCode and FromItemId or FromItemCode and FromItemClassCode and FromItemVariantId or FromItemVariantCode.
If all of them are specified they need to correspond to the same bill of material.

Destination Version Identification

Is enough to specify ToBillOfMaterialVersionId or ToBillOfMaterialVersionCode parameter. If both are specified they need to correspond to the same version.

Destination Variant Identification

Is enough to specify ToItemVariantId or ToItemVariantCode parameter. If both are specified they need to correspond to the same variant.

Destination Item Identification

Is enough to specify ToItemId or ToItemCode and ToItemClassCode parameter. If all of them are specified they need to correspond to the same item.

Destination Company Identification

Is enough to specify ToCompanyId or ToCompanyCode parameter. If both are specified they need to correspond to the same company.

Destination Department Identification

Is enough to specify ToDepartmentId or ToDepartmentCode parameter. If both are specified they need to correspond to the same department.