Check file existence by extension in folder

Hello guys
I need to check if there are files of type .xlsx in a specific folder.
I entered this Expression: Path.Contains(“.xlsx”)

But it didn’t return the correct result.
Does anyone know an expression that works or another way to check.

Is powershell allowed in your workflow? Using powershell you can easily do that and you call it using powershell activity inside Uipath.

Else refer the below video.

1 Like

The expression should be:

Directory.GetFiles("C:\Test", "*.xlsx").Length > 0

1 Like

it worked thank you very much

1 Like

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