cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
Super User III
Super User III

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
Highlighted
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

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,288)