I am trying to create a flow that will store emails in a folder on SharePoint when sent in about a person's account. The issue I am having is having the flow verify if the subfolder exist since it would put the email in the MISCELLANEOUS folder if a folder for that account does not exist yet. As you can see below, the folder path is by Year, Type, the account number with name, and then the COMMUNTICATIONS folder where the email would be stored.
I have already built the why for the flow to find out the folder for the year but I am stuck on how Power Automate can confirm if there is a folder with the account number and name inside of the Folder A or B. If Power Automate can verify the sub folder, then I would need to have the output to create the path to the folder so I can plug that part in to the reset of the flow to store the email.