I am trying to update the quantity in my custom IDO when the Item variable (ItemVar) equals the Item number in the database record. I am not sure where or how I need to add this filter. Can someone offer guidance. Here is what I have:
Dim request As New UpdateCollectionRequestData
Dim response As New UpdateCollectionResponseData
Dim newReserve As New IDOUpdateItem
Dim dd As DateTime = DateTime.UtcNow.AddHours(-6)
'determine if it is a Unit of Measure or Pallet/Crate or Box
Dim Unit As String
If ThisForm.Components("CrateCB").Value = "1" Then
Unit = "Crate/Pallet"
ElseIf ThisForm.Components("BoxCB").Value = "1" Then
Unit = "Box"
Else
Unit = ThisForm.Variables("UnitVar").Value
End If
'
request.IDOName = "ue_JCMReserves"
request.RefreshAfterUpdate = True
Try
If ThisForm.Components("ReleaseCB").Value = "1" Then
Dim newcount As Decimal = 0
newReserve.Action = UpdateAction.Update
newReserve.Properties.Add("quantity", newcount)
newReserve.Properties.Add("released", dd)
request.Items.Add(newReserve)
response = IDOClient.UpdateCollection(request)
End If
Catch ex As Exception
MsgBox("Error" & vbCrLf & ex.Message)
End Try