How to pass excel sheet name in Excel read range

How to pass excel sheet name in Excel read range activity
My excel can have sheet0 or sheet1
i tried using assign sheetName=“sheet0” or “sheet1”
but its throwing error

@shilpashree.mohanty

check this thread
what is the error you got?

Hi @shilpashree.mohanty

Try this

Regards,

we cant use workbook or modern activity
any way in read range itself?
image

@shilpashree.mohanty

Can try with Try/Catch activity

Regards,

Any linq query to get or assign activity?

What can you use then?

@shilpashree.mohanty

If there is only one aheet then you need not pass the name as well if you use use excel file activity

Cna you confirm

If not use classic get worksheets and check the sheetname that exists and use it

Cheers