DuplicateProductionCycle
Duplicate Production Cycle.
Overview
Duplicate one FSProductionCycle object to one or more FSProductionCycle 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/MS/ProductionCycles/DuplicateProductionCycle |
HTTP Method | POST |
Method Type | Operation |
Fluentis Object | Fluentis.FluentisErp.Core.MS.ProductionCycles.FSProductionCycle |
Request parameters
Parameter | Type | Is Required | Default Value | Description |
---|---|---|---|---|
FromProductionCycleId | integer | No | Identify Source FSProductionCycle object using Id. | |
FromProductionCycleExternalId | string | No | Reference to External Id for Production Cycle identification | |
FromProductionCycleExternalSystem | string | No | Reference to External System for Production Cycle identification | |
FromProductionCycleCode | short | No | Identify Source FSProductionCycle object using the Code. | |
FromItemId | integer | No | Identify Source FSProductionCycle object using the Id of the FSItem referenced object. | |
FromItemCode | string | No | Identify Source FSProductionCycle object using the Code and Class Code of the FSItem referenced object. | |
FromItemClassCode | string | No | Identify Source FSProductionCycle object using the Code and Class Code of the FSItem referenced object. | |
FromItemVariantId | integer | No | Identify Source FSProductionCycle object using the Id of the FSItemVariant referenced object. | |
FromItemVariantCode | string | No | Identify Source FSProductionCycle object using the Code of the FSItemVariant referenced object. | |
FromBillOfMaterialVersionId | short | No | Identify Source FSProductionCycle object using the Id of the FSBillOfMaterialVersion referenced object. | |
FromBillOfMaterialVersionCode | string | No | Identify Source FSProductionCycle object using the Code of the FSBillOfMaterialVersion referenced object. | |
ToProductionCycleCode | integer | No | Identify the Code for the new copied FSProductionCycle 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. | |
DuplicateExtraData | boolean | No | false | Decide if the extra data will be duplicated. |
Production Cycle Identification
Is enough to specify FromProductionCycleId or FromProductionCycleExternalId and FromProductionCycleExternalSystem or a combination of the following: FromProductionCycleCode and 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 Production Cycle.
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.