Mr. International
Hi Guyz,
I have situation here where I'm building a robot in a statemachine. I want it to read a single excel file with 2 worksheets. the process for each sheet the robot has to perform is different from each other. now my question is how to pass each row (for both the sheets simultaneously) in the "Get transaction" invoke function?
If you need to convert from DataRow to Dictionary(of string, object) as ItemInformationCollection argument of Add Queue Item activity, then there is code below. There is column name is key and cell value is value. This code must be put into For Each Row activity and element is "row"
row.Table.Columns.Cast(Of DataColumn)().ToDictionary(
Function(c) c.ColumnName,
Function(c) If( row(c.ColumnName).ToString.Equals(String.Empty),
CType(String.Empty, Object),
row(c.ColumnName)
)
)