cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhamus
Level: Power Up

Send email when a file is created with an especific extension

Hi, new here on flows.
I was trying to create a flow when a file is created with an specific extension (.txt, .pdf) in a library and then send an email with that file attached.
Not sure how to make this work, I stuck on here:
Screenshot_1.png


I'd appreciate any help. Thank you. (Sorry for my english).

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Send email when a file is created with an especific extension

Hi @Dhamus ,

 

Please try the following method to configure Flow.

 

  • Use Condition to determine if File name with extension ends with .txt or .pdf.
  • If yes, configure Get file content to get the file content, and finally send the file as an attachment.

Image reference:

1.PNG

2.PNG

Please take a try.

 

Best Regards,

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

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Send email when a file is created with an especific extension

Hi @Dhamus ,

 

Please follow this article where it explains how to find the extension of a filename.

 

https://www.timlinenterprises.com/microsoft-flow-substring/

 

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

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Community Support Team
Community Support Team

Re: Send email when a file is created with an especific extension

Hi @Dhamus ,

 

Please try the following method to configure Flow.

 

  • Use Condition to determine if File name with extension ends with .txt or .pdf.
  • If yes, configure Get file content to get the file content, and finally send the file as an attachment.

Image reference:

1.PNG

2.PNG

Please take a try.

 

Best Regards,

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

View solution in original post

Dhamus
Level: Power Up

Re: Send email when a file is created with an especific extension

Hi @v-bacao-msft and thank you so much for you help, this worked perfectly.
Just one last question, if this new file is modified, do I need to create a new flow or I can add some new condition to it?

Helpful resources

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,967)