ReassignWoToALine(Int32,String,Int32,Double,Nullable<Double>) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The ReassignWoToALine() method reassigns an existing work order to a line.
The current jobs in the work order will be suspended and deleted and then new jobs will be created for the specified line. Work orders created from a process may not be reassigned, so attempting to reassign a work order created from a process will result in an error.
'Declaration
Public Overloads Shared Sub ReassignWoToALine( _
ByVal sessionId As Integer, _
ByVal woId As String, _
ByVal targetSchedLineId As Integer, _
ByVal startQty As Double, _
ByVal reqqty As Nullable(Of Double) _
)
public static void ReassignWoToALine(
int sessionId,
string woId,
int targetSchedLineId,
double startQty,
Nullable<double> reqqty
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- woId
- Required. Holds the ID of the work order that is being reassigned.
- targetSchedLineId
- Required. Holds the ID of the line to which the work order is being reassigned.
- startQty
- Required. Holds the start quantity.
- reqqty
- Optional. Holds the required item quantity. Defaults to 0, if null is passed.