web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Moving email from Mail...
Power Automate
Suggested Answer

Moving email from Mailbox to SharePoint folder

(0) ShareShare
ReportReport
Posted on by 4
Good Day
 
I'm new to Power Automate and still learning. 
 
I have been trying to setup a workflow to move email from a user mailbox to a folder in SharePoint. There are subfolders that also need to be moved with the email as well. for some reason the first 3 steps work then the rest of the steps get skipped. 
 
I have added a few screen images of the flow.
 
Categories:
I have the same question (0)
  • Suggested answer
    RaghavMishra Profile Picture
    183 on at

    Hi, welcome to Power Automate! Let me help you troubleshoot why your steps after step 3 are being skipped.

    The most common cause: a condition evaluating to false

    In Power Automate, if you have a Condition action and the condition evaluates to false, the "false" branch is skipped entirely — those steps simply don't run, and the run history shows them as "Skipped." This isn't an error; it's the flow working as designed.

    How to diagnose

    1. Open the failed/skipped run in Power Automate's Run History.
    2. Click on the action that's skipping — skipped actions are shown in grey.
    3. Look at the action immediately before the skip — check its inputs/outputs to understand why the flow branched away.

    Typical issues when saving emails + attachments to SharePoint

    • Email has no attachments — if you use a condition like Has Attachments is equal to true and there are none, subsequent steps are skipped.
    • Missing Apply to each loop — attachments must be iterated using an Apply to each loop; missing this means only the first (or no) attachment is processed.
    • Subfolder path doesn't exist — when using Create file in SharePoint, the folder path must already exist; Power Automate won't create missing folders automatically.

    Recommended flow structure

    Per Use SharePoint and Power Automate to build workflows – Microsoft Learn:

    1. Trigger: When a new email arrives (Office 365 Outlook)
    2. Condition: Check Has Attachments is true
    3. Apply to each over Attachments
    4. Get attachment content (Outlook action)
    5. Create file (SharePoint action) — specify the target folder path

    If you can share which step is being skipped and what the run history shows for inputs, that will help narrow it down further!

    References

    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav Mishra — LinkedIn | PowerAI Labs

  • CD-10061443-0 Profile Picture
    4 on at
     
    I just want to clarify that this is for existing emails being stored in an outlook folder rather than newly received emails. Thank you for the information above that you provided and the compose year part of my workflow can't seem to find the folders in the mailbox named with the year. 
     
    ActionConditionFailed
    The execution of template action 'Compose_Year' is skipped: there are no items to repeat.
     
    {
      "type": "Compose",
      "inputs": "@formatDateTime(item()?['receivedTime'], 'yyyy')"
    }
     
    Would this be the wrong step to be using for the workflow?
     
  • CD-10061443-0 Profile Picture
    4 on at
    So, because it is looking in the parent folder for the email the flow is not seeing the subfolders which need to be copied over with all their email contents to the SharePoint folder. 
     
    Parent folder -> Year Folder -> folders named with date and employee name.
     
    I don't see a way to list out the subfolders that would work with the get email command.
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard