DeleteAll Method (BomItemSubst)
- Last UpdatedNov 06, 2025
- 1 minute read
The DeleteAll() method removes one or more BOM item substitute records from the Bom_Item_Subst table, as specified by the filter parameters. Passing no filter parameters will remove all item substitute records from the table.
'Declaration
Public Shared Sub DeleteAll( _
ByVal sessionId As Integer, _
ByVal parentItemId As String, _
ByVal verId As String, _
ByVal bomPos As Nullable(Of Integer), _
ByVal altNo As Nullable(Of Integer) _
)
'Usage
Dim sessionId As Integer
Dim parentItemId As String
Dim verId As String
Dim bomPos As Nullable(Of Integer)
Dim altNo As Nullable(Of Integer)
BomItemSubst.DeleteAll(sessionId, parentItemId, verId, bomPos, altNo)
public static void DeleteAll(
int sessionId,
string parentItemId,
string verId,
Nullable<int> bomPos,
Nullable<int> altNo
)
Parameters
- sessionId
Required. Holds a session ID and thus the user who is making this method call.
- parentItemId
Optional filter parameter. Holds the ID of a parent item.
- verId
Optional filter parameter. Holds the ID of a BOM version.
- bomPos
Optional filter parameter. Holds a BOM position (usually sequential). For by-products, this value is negative. For this item being produced, the BOM position is 0, in which case the item_id is the same as the parent_item_id.
- altNo
Optional filter parameter. Holds the alternative number for a BOM position.