Skip to main content

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.

Urlapi/public/FluentisErp/WM/Common/DuplicateItemOneToMany
HTTP MethodPOST
Method TypeOperation
Fluentis ObjectFluentis.FluentisErp.Core.WM.FSItem

Request parameters

ParameterTypeIs RequiredDefault ValueDescription
ItemIdintegerNoIdentify Source FSItem object using Id.
ExternalIdstringNoReference to External Id for Item identification
ExternalSystemstringNoReference to External System for Item identification
ItemCodestringNoIdentify Source FSItem object using ItemCode and ItemClass.
ItemClassCodestringNoIdentify Source FSItem object using ItemCode and ItemClass.
ToCompanyIdshortNoIdentify Destination company using Id.
ToCompanyCodestringNoIdentify Destination company using Code.
ToDepartmentIdshortNoIdentify Destination department using Id.
ToDepartmentCodestringNoIdentify Destination department using Code.
ToItemClassIdshortNoIdentify destination ItemClass using Id.
ToItemClassCodestringNoIdentify destination ItemClass using Code.
DuplicateItemsArray of DuplicateItemOneToManyIdentificationNoDetails 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

ParameterTypeDescription
CodestringThe new code of the Item.
DescriptionstringThe new description of the Item.
SecondDescriptionstringThe new second description of the Item.
MeasurementUnitIdshortThe new measurement unit of the Item identified by Id.
MeasurementUnitCodestringThe new measurement unit of the Item identified by Code.