Hi,
I have a problem: I have an Excel table in which the columns date (column A as “dd/mm/yyyy”) and status (column D) are listed. I would now like to build a function that first checks whether today’s date combined with the status “Order executed” is already in the file. If yes, the function should end, if no, other activities will be executed.
Read the data into datatable and use filter activity to filter all the columns that you want. And if filter returns a row then it means your excel has the required combination
Ye syou can give column number or name…anything and for datetime…please useToString(“MM/dd/yyyy”) or any other format that matches with your excel
If you use filter dt then use dt.rowcount.equals(0)
And yes you can use linq as well…for that use dt.asenumerable.where(function(row) row(“datenum”).tostring.equals(now.tostring(“MM/dd/yyyy”)).count.equals(0)