I need to use the classic Read Range Workbook activity and I need to read the first sheet of the worksheet, but the name of the worksheet is not fixed, does anyone know an expression where I can get the contents of just the first sheet?
I don’t want to use Excel activities.
If don’t have excel installed on the system use BalaReva excel workbook activity - Get sheets name, and that returns the array of sheet names, and get the first sheet by myArrVar(0).
If excel is installed then you should be using Excel Process Scope and get the first sheet name. This is the only way.
Use the “Get Workbook Sheets” activity to get the sheet names from the Excel file. Then assign the first sheet name to a variable like firstSheet = sheetsList(0). Finally, use the “Read Range Workbook” activity and set the sheet name to firstSheet to read data from the first sheet. This way, you can read the first sheet without using Excel activities.