If I have a blank dt, and I want my robot to trigger mail, So how do I implement this in uipath?

If I have a blank dt, and I want my robot to trigger mail, So how do I implement this in uipath? How to check the condition when there’s no values in DT.

@Chandni Please use below condition

dt.Rows.Count=0 then you can send the mail.

where dt is ur datatable variable. if datatable is blank then you will get row count as 0

1 Like

And what if all the values are blank in dt but the header exists…

Datatables headers are not considered as rows. If your datatable is empty and if you do dt.rows.count you will get 0 as a result

1 Like

okay… Thanks