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

Emailing files as they are added to a Team

Hello, I am new to Power Automate and I am having trouble thinking of a solution to my issue. Basically, I want to set up a flow that will send an email anytime a new file is added to a Team. This email will only consist of an attachment of the new file that was just added, and it will need to go outside of the company. 

 

Thanks in advance for any help.

1 ACCEPTED SOLUTION

Accepted Solutions

This issue was resolved, I needed to add an action to get the metadata of the file between the first action and the condition. Thanks for the help.

View solution in original post

6 REPLIES 6
4th8
Helper I
Helper I

The trigger you are looking for is the SharePoint connector "When a file is created in a folder"

It should end up looking something like this:

4th8_0-1654623639078.png

 

Okay that seems to be working as intended. Thanks so much. Do you know if there is a way to only send over certain files that are added to that team based on the file name? Such as, only send the files that have "Plant Samples" in the name?

Sure. Add a condition based on the file name Contains the string you are looking for 

ScottBourg
Regular Visitor

Okay, apparently I am doing something wrong. Even though it is telling me the flow has completed successfully, I am not receiving an email, and I am getting this error message.

ScottBourg_1-1654633810108.png

The whole flow goes as follows:

When a file is created in a folder -> Condition: x-ms-file-name-encoded Contains Plant Samples -> If yes: send email/ If no: no action.

 

ScottBourg_2-1654634835459.png

 

It was working until I added the condition so I know I messed something up, just not sure what.

 

 

ScottBourg
Regular Visitor

Okay, apparently I am doing something wrong. Even though it is telling me the flow has completed successfully, I am not receiving an email, and I am getting this error message.

ScottBourg_1-1654633810108.png

The whole flow goes as follows:

When a file is created in a folder -> Condition: x-ms-file-name-encoded Contains Plant Samples -> If yes: send email/ If no: no action.

 

ScottBourg_2-1654634835459.png

 

It was working until I added the condition so I know I messed something up, just not sure what.

 

 

This issue was resolved, I needed to add an action to get the metadata of the file between the first action and the condition. Thanks for the help.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,167)