cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frixel 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?

 

flow.png

4 REPLIES 4
Community Support
Community Support

Re: Send reply with attachment and with new files

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.

1.PNG2.PNG

 

Best regards,

Mabel

 

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.
frixel Post Prodigy
Post Prodigy

Re: Send reply with attachment and with new files

Hi,

I have indeed been able to make the Flow now.

But...

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.

 

flow1.png

frixel Post Prodigy
Post Prodigy

Re: Send reply with attachment and with new files

Hi,

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.

flow3.png

Community Support
Community Support

Re: Send reply with attachment and with new files

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,

Mabel

 

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

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,450)