Hi, I have a datatable as below. After looping it in for each row activity. I want to do different sequence for rows which is has column B as 43712653 and different sequence for rows which is has column B as 43745260.
I have tried using if row(1).tostring = “43712653” or row(1).tostring.contains(“43712653”). However, instead of writing rows which has a column B = “43712653”, it is writing the whole datatable inside the If.
Actually, any Data Table will have a column name It is probably a default one. You can find it out by using Output Data Table activity and printing it to the console.
But you can also use a 0-based index for your column:
@loginerror
It works for
row.Item(“columnName”).ToString.Contains(“43712653”)
but it doesn’t work for
row.Item(“columnName”).ToString.Contains(“43745260”)
it outputs the rows for both 43712653 & 43745260