cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

When a File is Saved in a OneDrive Folder, Email that File, Then Delete File

All -- First, the flow is working just as I want it to --- it is just corrupting the excel files I'm wanting to send in the email.

 

I've tried files of all these types:

file types.PNG

The overall Flow is this:

 

overall.PNG

 

it analyzes a specific OneDrive Folder every five minutes, if a file is there, it generates an email, attaches that file, and sends it along.

 

The sent email looks great in Outlook.  When I or the addressee tries to open that file -- it reports it as corrupted.

 

Here is the dynamic portion of the email creation step:

 

email_add.PNG

 

Any advice or alternative methods would be appreciated --- again, the Flow works as I want it, it's just that the excel attachment is always corrupted when sent...

 

 

Thank you!

John

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: When a File is Saved in a OneDrive Folder, Email that File, Then Delete File

Hi @JohnH,

 

I afraid that you have choose the wrong dynamic content in the "Attachments Content" field of "Send an email"action.

 

Please choose the "File content" dynamic content of the trigger in the "Attachments Content" field of "Send an email"action as screenshot below:

Capture.PNG

 

 

Best regards,

Alice

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: When a File is Saved in a OneDrive Folder, Email that File, Then Delete File

Hi @JohnH,

 

I afraid that you have choose the wrong dynamic content in the "Attachments Content" field of "Send an email"action.

 

Please choose the "File content" dynamic content of the trigger in the "Attachments Content" field of "Send an email"action as screenshot below:

Capture.PNG

 

 

Best regards,

Alice

View solution in original post

Highlighted
Frequent Visitor

Re: When a File is Saved in a OneDrive Folder, Email that File, Then Delete File

I guess I had gone Flow-Blind™  after staring at it for so long.

 

Many thanks!

John

Highlighted
New Member

Re: When a File is Saved in a OneDrive Folder, Email that File, Then Delete File

Hi,

I am having the exact same problem, However I have no choice for File Content. Only file path & file name. I am only wishing to create the email, attach the file when it is put in a designated folder & send to multiple recipients. All works well except the attachment is corrupt at the other end.Flow Error.PNG

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Users online (7,482)