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

Send File as attachment in Email from File System triggered from PowerApps?

I'm trying to grab a file from the file system and send this file as attachment in an email and triggering this from Power Apps? would something like this be possible to accomplish?

 

Thanks in advance for your help.

1 ACCEPTED SOLUTION

Accepted Solutions

Hey @MidwayC11 

I setup a very quick example... I've added a label to a screen set the formulae to: Office365Users.MyProfile().Mail

1.pngMore details on getting user data here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-users

I then connected a button to a Flow and configured the formulae as follows... (it sends the value of the label to Flow):

 

2.png

 

And the flow is configured:

3.png

 

I hope this provides some useful high level steps to pass data from your PowerApp to Flow 🙂

This article may also be of use... the scenario is different, but it does provide detailed step by step guidance on how to pass data from PowerApps to Flow: https://blog.encodian.com/2019/09/reduce-the-size-of-images-generated-by-powerapps-with-flow/

HTH
Jay

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

4 REPLIES 4
Super User II
Super User II

Hey @MidwayC11 

Absolutely possible 🙂

You'd use the 'Get File Content' action from 'File System' connector to obtain the actual file: https://docs.microsoft.com/en-us/connectors/filesystem/

Use the 'Get file metadata' action from the 'File System' connector to get file information... such as the filename

Then simply use the 'Send an Email (v2)' action from the Office 365 Outlook connector to create the email and send the file: https://docs.microsoft.com/en-us/connectors/office365/

Quick example:

1.png

 

Of course you're going to need some logic to determine which will to pickup from the file system... I guess you'll simply pass this information from your PowerApp to PowerAutomate?

HTH

Jay

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thanks very much for replying to my question here. That's awesome explanation with the sample shot here. That's very good and all but now in the To field in the send an email control, I need to pass an email address from PowerApps, I think i have to use the Aks in PowerApps control at the beginning?

Thanks very much for your help.

Hey @MidwayC11 

I setup a very quick example... I've added a label to a screen set the formulae to: Office365Users.MyProfile().Mail

1.pngMore details on getting user data here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-users

I then connected a button to a Flow and configured the formulae as follows... (it sends the value of the label to Flow):

 

2.png

 

And the flow is configured:

3.png

 

I hope this provides some useful high level steps to pass data from your PowerApp to Flow 🙂

This article may also be of use... the scenario is different, but it does provide detailed step by step guidance on how to pass data from PowerApps to Flow: https://blog.encodian.com/2019/09/reduce-the-size-of-images-generated-by-powerapps-with-flow/

HTH
Jay

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

Thanks again for the great help!! That did it!

Helpful resources

Announcements
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.

secondImage

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!

Users online (7,104)