Hi. Very new to Power Automate and expressions. I am trying to get a list of files and folders in a target OneDrive folder and filter out the file names to end up with a list of folder names only.
The ultimate goal is to compare those folder names with a string extracted from an email (which I have figured out how to do), and IF there is a match, save the email as a .eml file into the folder whose name matches the word extracted from the email.
I've worked out a series of steps to achieve this goal, but I am currently stuck at filtering the list of files and folders... I need to convert the result to array first apparently, but I do not understand how to do that. I have asked Copilot but none of its solutions work. And everything I find online either doesn't work or isn't suitable for this task. Any help with this would be greatly appreciated!