AddItemNumbers Method
Creates new item numbers.
Required Permissions
ItemChangeItemNumberSyntax
public ItemNum[] AddItemNumbers(
System.long[] itemMasterIds,
System.long[] numberingSchemeIds,
StringArray[] fieldInputs,
out ProductRestric[] restrictions
)Public Function AddItemNumbers( _
ByVal itemMasterIds() As System.Long, _
ByVal numberingSchemeIds() As System.Long, _
ByVal fieldInputs() As StringArray, _
ByRef restrictions() As ProductRestric _
) As ItemNum()Parameters
| Name | Description |
|---|---|
| itemMasterIds | The Item master IDs that the new numbers apply to. All input arrays must be the same size. |
| numberingSchemeIds | The numbering scheme to use for each master ID. All input arrays must be the same size. |
| fieldInputs | The values required for each numbering scheme. The top level array must be the same size as the other input arrays. |
| restrictions | Output restrictions that indicate why reserving some item number failed. |
Return Value
An array of records of the created item numbers.
Remarks
If a counter is used in the numbering scheme, calling this function will cause it to increment. This mechanism can be used to insure that no two items get the same number.