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 / Split out email attach...
Power Automate
Answered

Split out email attachments into individual emails and send/forwad

(0) ShareShare
ReportReport
Posted on by 19

Is there a way to look at the attachments on an email message (O365) then for each attachment send a separate email, but to the same address?

 

e.g.

1. Email comes into inbox with picture1.jpg and picture2.jpg.

2. Picture1.jpg is attached to a new message and sent to abc@123.com

3. Picture2.jpg is attached to a different new message and sent to abc@123.com 

 

I've got my flow to the point where it will send two separate emails, but both emails have both attachments on.

Sure I'm missing either a loop or for each process somewhere.

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @RolandDeschain,

    Do you want to send the attachments separately from an email?

    I did some test according to your requirements.

    vmingkzmsft_0-1688110040622.png

    vmingkzmsft_1-1688110306124.png

     

    Best Regards,

    Kyrie

     

  • RolandDeschain Profile Picture
    19 on at

    Hi Kyrie,

     

    Thanks for this.  

    If you think of it as a simple splitting of the original email, into several emails based on however many attachments there are.  I don't need to save the files anywhere, simply split the attachments onto separate emails and send them onwards to another destination.

     

    When I try to re-create your steps, after "When a new email arrives" I'm adding the step in to "Get Attachment" and it asks for a Message Id and Attachement Id [sic].  I enter the dynamic value "Message ID" into the Message Id field and it creates an "Apply to each" with "value" in a field "Select an output from previous steps".

    Under Attachement Id [sic] I enter the dynamic content "Attachments Attachment Id" and in doing so I seem to get a nested "Apply to each 2".  

    Ultimately once I add the other steps in it fails.  

    I'm sure I'm doing something wrong at this stage?

     

    RolandDeschain_0-1688112678531.png

     

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @RolandDeschain,

    Let's do it step by step.

    1. Add the trigger 'when a new email arrives'.

    2. Add an 'apple to each' action and set the input as attachments.

    3. Add 'get attachment' action.

    vmingkzmsft_0-1688114201705.png

    Best Regards,

    Kyrie

  • RolandDeschain Profile Picture
    19 on at

    Hi Kyrie,

     

    At step two, the instant I click the dynamic content "Attachments" (see below)

    RolandDeschain_0-1688119207654.png

     

    It jumps to show this:

    RolandDeschain_1-1688119245833.png

    If I click that nested "Apply to each" I see this:

    RolandDeschain_2-1688119292198.png

     

     

  • RolandDeschain Profile Picture
    19 on at

    I think I got myself wrapped up in knots on this as I've tried again and although I'm still seeing the process nested, it is working as I wanted:

    RolandDeschain_0-1688129775583.png

     

    Many thanks for your help and patience!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard