@Gonzo2024 Sorry I misunderstood your original post. Depending on how many folders you need to file your photos in, nesting multiple condition actions inside each other will be inefficient. It would be better to create a folder (if it doesn't exist) or look for a folder if it does and place the photos into that folder.
Are you expecting the subject lines to have consistent syntax? Grade first, gender second and then sport? Are you expecting the grade to be 3rd grade or grade 3?
The reason I'm asking is that if the subject line comes in as: 3rd grade girls lacrosse - subject, you could split the subject line at the '-'. This would leave you with 3rd grade girls lacrosse. You would use that string to check if the folder exists, if not, create one, if so put the attachments into the folder.
However, if the subject line is Grade 3 girls lacross - subject or Gr. 3 girls lacross - subject you would have to add extra logic to your flow.
You might find this YT Tutorial Helpful: Save Email Attachments to SharePoint with Microsoft Power Automate
Power Automate doesn’t have a download attachment from outlook action. In this Power Automate Video tutorial, I’ll show you how to use the Get Attachment (V2) action in combination with the Create File action to get your email attachments onto SharePoint.
The Create File action will overwrite any files that already exist with the same name. In this tutorial, I’ll show you how you can append a timestamp to the end of a file name to prevent your file from being overwritten. I’ll also show you how to set up your flow so that you can trigger it manually while building it so you don’t need to wait for an email to arrive. At the end of the video I’ll show you how adding trigger conditions to your flow can prevent it from triggering if certain conditions aren’t met.
Although the final flow uses the When a new email arrives in a shared mailbox (V2) trigger, you can use any of the When a new email arrives triggers for your flow. Adjust this flow to suit your needs!
IN THIS VIDEO:
✅ How to Automate Downloading and Uploading Email Attachments to SharePoint
✅ How to Use a the Get Email (V2) action
✅ How to Use the Get Attachment (V2) action
✅ How to Create Attachment Files using the Create File Action
✅ How to Prevent the Create File Action from Overwriting a File
✅ How to use Split the Filename from its Extension
✅ How to Append a Timestamp to a File Name
✅ How to use the When a New Email Arrives in a Shared Mailbox (V2) trigger.
✅ How to use the Convert Time Zone action
✅ How to add Trigger Conditions to your Flow
Hope this helps!