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.
Url | api/public/FluentisErp/WM/Common/DuplicateBillOfMaterial |
HTTP Method | POST |
Method Type | Operation |
Fluentis Object | Fluentis.FluentisErp.Core.WM.FSBillOfMaterial |
Request parameters
Parameter | Type | Is Required | Default Value | Description |
---|---|---|---|---|
FromBillOfMaterialId | integer | No | Identify Source FSBillOfMaterial object using Id. | |
FromBillOfMaterialExternalId | string | No | Reference to External Id for Bill Of Material identification | |
FromBillOfMaterialExternalSystem | string | No | Reference to External System for Bill Of Material identification | |
FromItemId | integer | No | Identify Source FSBillOfMaterial object using the Id of the FSItem referenced object. | |
FromItemCode | string | No | Identify Source FSBillOfMaterial object using the Code and Class Code of the FSItem referenced object. | |
FromItemClassCode | string | No | Identify Source FSBillOfMaterial object using the Code and Class Code of the FSItem referenced object. | |
FromItemVariantId | integer | No | Identify Source FSBillOfMaterial object using the Id of the FSItemVariant referenced object. | |
FromItemVariantCode | string | No | Identify Source FSBillOfMaterial object using the Code of the FSItemVariant referenced object. | |
FromBillOfMaterialVersionId | short | No | Identify Source FSBillOfMaterial object using the Id of the FSBillOfMaterialVersion referenced object. | |
FromBillOfMaterialVersionCode | string | No | Identify Source FSBillOfMaterial object using the Code of the FSBillOfMaterialVersion referenced object. | |
ToCompanyId | short | No | Identify Destination company using Id. | |
ToCompanyCode | string | No | Identify Destination company using Code. | |
ToDepartmentId | short | No | Identify Destination department using Id. | |
ToDepartmentCode | string | No | Identify Destination department using Code. | |
ToItemId | integer | No | Identify Destination Item using Id. | |
ToItemCode | string | No | Identify Destination Item using Code and Class Code. | |
ToItemClassCode | string | No | Identify Destination Item using Code and Class Code. | |
ToItemVariantId | integer | No | Identify Destination Variant using ItemVariantId. | |
ToItemVariantCode | string | No | Identify Destination Variant using ItemVariantCode. | |
ToBillOfMaterialVersionId | short | No | Identify Destination Version using BillOfMaterialVersionId. | |
ToBillOfMaterialVersionCode | string | No | Identify Destination Version using BillOfMaterialVersionCode. | |
DuplicatePhases | boolean | No | false | Decide if the phases will be duplicated. |
DuplicateAlternatives | boolean | No | false | Decide if the alternatives will be duplicated. |
DuplicateExtraData | boolean | No | false | Decide 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.