Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

Send reply with attachment and with new files

With the Flow below, I have sent an e-mail when it arrives in the mail program.
However, I actually want an answer to the mail, but due to a "bug" in Flow that is not (yet) possible.

In fact, I want an answer to be sent to a particular mail that comes in the inbox, including the attachment that the sender sends.

The flow then also adds a file and text.


How can I make sure that the attachment of the sender is included in the flow below?



Community Support
Community Support

Hi @frixel ,


Could you share more details on your scenario?

What do you mean by “want an answer to the mail, but due to a bug in Flow”?

I guess that you want to reply to the email with attachments from SharePoint library and the original email attachments.

I have made a flow likes below for your reference.

Add the trigger When a new email arrives.

Get file metadata, then Get file content. If you need to get multiple files, then repeat these two steps.

To attach the original email attachments, add action Get attachment.

Within the Apply to each, add action Reply to email (V2). Select Name and File content for each Attachments Name and Attachments Content field.

Under the Apply to each, add action Delete email to delete the original email.



Best regards,



Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


I have indeed been able to make the Flow now.


A reply mail is now sent twice!
One time with the original attachment from the received mail and added the 3 files(exel files and a .pdf) from sharepoint. This is good.


But there is also sent a twice e-mail! with for example, the logos or images in the attachment if they are in the sender's mail.

It is the intention that only .xls and/or .xlsx files of the recipient are returned, not eg pictures or logos.

See the Flow i now have.




I try to get this Flow working, but I fear that some commands in the Flow have now been renamed. and the action "outputs" there are now 2 of them. you now have the choice between action outputs and trigger outputs. (what should it be?) And what needs to be filled in with the 2nd variable where you say you want to fill it in later?


I have now a error on:

The template validation failed: 'The repetition action(s) 'apply_to_each_Attachment_on_the_email' referenced by 'inputs' in action 'Compose' are not defined in the template.'.


This is what i now have.


HI @frixel ,


If you want only .xls and or .xlsx files, please just add a Condition in the flow.


From the last image, it seems that you’ve already added a Condition in the flow.


About the error message, I guess that you are not using the correct parameters in the functions.


Under which step, do you want to place the Apply to each action?


If it is Compose action, please just add it under the Compose within the Apply to each 2 loop.


Best regards,



Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (5,876)