How to check an excel row count

Hi ,

I have a scenario to get the row count based on that I need to send an email if it’s zero

Thanks in advance

hi @Umesh_p

kindly use the expression
first store the xecel output via read range as datatable lets assume that its Dt

next use an if condition below
Dt.Rows.Count.ToString=0

then

use send email

1 Like

Hey @Umesh_p you can use an if activity

If YourDT.RowCount <> 0
continue

Else
Send email

Hiopeit helps you out

1 Like

Hi @Umesh_p

You can use the rowcount function to get the row count of the datatable. Let’s called datatable name as dtinput.

dtinput.rowcount which gives the value of the rowcount.

In If condition check the count by below condition.

- Condition -> dtinput.rowcount=0

In then block you can give the activities for forward automation.

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.