I’m trying to replicate the function that my assign activity does but using invoke code activity
Here is the code:
1 + Dt_ColumnRange.Rows.Cast(Of DataRow).Select(Function(Row, Index) New KeyValuePair(Of Int32, Object)(Index, Row(“Column0”))).Where(Function(Entry) Entry.Value IsNot Nothing).Where(Function(Entry) Not String.IsNullOrWhiteSpace(Entry.Value.ToString)).Select(Function(Entry) Entry.Key).Max
My end goal here is to have the Dt_ColumnRange and “Column0” set as input arguments into the invoke code activity