Get Records Count from Excel

I am new at Outsystems and I'm trying to create an action, that before doing the import records from excel, I get to know the total records on this Excel file. Is there a way to get the total of records before doing a foreach over this excel file?

What I'm trying to say is I have an upload action and the I do the import records, after I need to know the total of records, after that I decide to do or not the import according to total value on this Excel.

Hi Mário,

The ExcelToRecordList action that you use to convert the Excel into a Record List has a Length field:

It will tell you how many records were obtained from the Excel, and you can access it without running a For cycle over the results.