ReassignWoToALine(Int32,String,Int32,Double,Nullable<Double>,Nullable<Int32>,String,String,String,String) Method
- Last UpdatedNov 06, 2025
- 2 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.
This overload of the method includes the following input parameters:
- woPriority
- custInfo
- moId
- prodSchedId
- notes
'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), _
ByVal woPriority As Nullable(Of Integer), _
ByVal custInfo As String, _
ByVal moId As String, _
ByVal prodSchedId As String, _
ByVal notes As String _
)
'Usage
Dim sessionId As Integer
Dim woId As String
Dim targetSchedLineId As Integer
Dim startQty As Double
Dim reqqty As Nullable(Of Double)
Dim woPriority As Nullable(Of Integer)
Dim custInfo As String
Dim moId As String
Dim prodSchedId As String
Dim notes As String
WO.ReassignWoToALine(sessionId, woId, targetSchedLineId, startQty, reqqty, woPriority, custInfo, moId, prodSchedId, notes)
public static void ReassignWoToALine(
int sessionId,
string woId,
int targetSchedLineId,
double startQty,
Nullable<double> reqqty,
Nullable<int> woPriority,
string custInfo,
string moId,
string prodSchedId,
string notes
)
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.
- woPriority
- Optional. Holds the updated priority of the work order. Not updated if null is passed.
- custInfo
- Optional. Holds the updated customer information for the work order.
- moId
- Optional. Holds the updated manufacturing order for the work order.
- prodSchedId
- Optional. Holds the ID of the updated production schedule to which the work order belongs.
- notes
- Optional. Holds updated notes about the work order.