cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhamus
New Member

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
v-bacao-msft
Community Support
Community Support

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
abm
Super User
Super User

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!

Learn more from my blog
Power Automate Video Tutorials
v-bacao-msft
Community Support
Community Support

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.

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,386)