27-10-21 10:40 AM
Answered! Go to Answer.
27-10-21 03:27 PM
27-10-21 04:01 PM
' If you pass your collection as input argument, it comes in as DataTable type
' Let's assume you called it myInputTable, and it had two columns with text fields [Customer, Cancellation type]
' Here we create a new table to copy the stuff over
Dim localTable As DataTable = New DataTable()
localTable.Columns.Add("Customer", GetType(String))
localTable.Columns.Add("CancellationType", GetType(String))
Dim myCurrentTableRow As DataRow
Dim tmpStr as String
For Each myCurrentTableRow In myInputTable.Rows
tmpStr = myCurrentTableRow.GetValue(1)
If tmpStr.Contains("ellation") OR tmpStr.Contains("CANC") Then
tmpStr = "Cancellation"
End If
localTable.Rows.Add(myCurrentTableRow.GetValue(0), tmpStr)
Next
' you could return localTable or create a copy and decalare myOutputTable as the output collection in the code stage output parameters
myOutputTable = localTable
DISCLAIMER: I did not test this, so the sample is meant just to get you going with the data types and the methods you need. Surely can google the rest.
28-10-21 08:59 AM
05-08-22 08:11 PM
05-08-22 08:52 PM