Hey @Avani, if you want to extract only .XAML files from a directory and display their names, then you can simply achieve this by following steps:
1. Create a Sequence. Also create variables fileList and sourcePath and assign path of files directory to sourcePath. Set fileList type as String[].
2. Now drag an Assign activity and assign fileList to Directory.GetFiles(sourcePath, "*.xaml"). This will store all .xaml files into fileList array.
3. Finally, add a ForEach activity to iterate over fileList. Inside ForEach, call WriteLine activity to write file names to Output (debug console):