DuplicateItemOneToMany
Duplicate Item.
Overview
Duplicate one FSItem object to one or more FSItem objects using the specified Company, Department and Item Class information. The procedure can create one or more copies using the specified Item Codes.
Url | api/public/FluentisErp/WM/Common/DuplicateItemOneToMany |
HTTP Method | POST |
Method Type | Operation |
Fluentis Object | Fluentis.FluentisErp.Core.WM.FSItem |
Request parameters
Parameter | Type | Is Required | Default Value | Description |
---|---|---|---|---|
ItemId | integer | No | Identify Source FSItem object using Id. | |
ExternalId | string | No | Reference to External Id for Item identification | |
ExternalSystem | string | No | Reference to External System for Item identification | |
ItemCode | string | No | Identify Source FSItem object using ItemCode and ItemClass. | |
ItemClassCode | string | No | Identify Source FSItem object using ItemCode and ItemClass. | |
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. | |
ToItemClassId | short | No | Identify destination ItemClass using Id. | |
ToItemClassCode | string | No | Identify destination ItemClass using Code. | |
DuplicateItems | Array of DuplicateItemOneToManyIdentification | No | Details of the new copy |
Item Identification
Is enough to specify ItemId or ItemCode and ItemClassCode 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.
ItemClass Identification
Is enough to specify ToItemClassId or ToItemClassCode parameter. If both are specified they need to correspond to the same item class.
DuplicateItemOneToManyIdentification
Parameter | Type | Description |
---|---|---|
Code | string | The new code of the Item. |
Description | string | The new description of the Item. |
SecondDescription | string | The new second description of the Item. |
MeasurementUnitId | short | The new measurement unit of the Item identified by Id. |
MeasurementUnitCode | string | The new measurement unit of the Item identified by Code. |