Hai,
I have to do a task where i should find in an excel whether any details are missing if any details are missing i should get the field name where the data is missing and send an acknowledge mail regarding the missed field to reenter and send.
If this is my excel if the employee fails to fill the email i should able to find it and get the field name as email how could i achieve this. i cant give the each row name as i have 17 field to be filled
You can use two for loop here…one for each row and inside that loop for each column loop
And check for that column value if it is blank you can print that header or column name.
Let’s say you have read your Excel as datatable dtExcel
Then run a loop
For each ‘row’ in dtExcel
For each item in dtExcel.columns
row(item.tostring)–> will give you value of every column and item.to–> string will give you column name or header name.
You have to drag if activity from activity pane and inside that condition text area you have to write
StringIsNullorEmpty(row(item.tostring))
Print item.tostring
StringIsNullorEmpty is not a variable to be declared…
It is function of string .
In condition box first just type String
Then use Ctrl+Space then you can see IsNullorEmpty option there and select that