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

Send an email when a file is created in File System

Hello everyone

 

How to send files from File System only file name (D1_DMSOM004_TEMPLATE_2) no all file name send email?

 

Thanks in advance

 

Picture1.pngPicture2.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Community Support
Community Support

Hi @unchalem 

You can add a judgment condition before sending the email, if the file name is 'D1_DMSOM004_TEMPLATE_2', then send the email, otherwise the email will not be sent.

Because the display name includes the file extension, so I use contains here to judge.

vLilyWmsft_1-1634267419632.png

Or use the following formula to get the file name without extension,then judge whether the file name is equal to D1_DMSOM004_TEMPLATE_2.

Expression:first(split(outputs('Get_file_metadata_using_path')?['body/DisplayName'],'.'))

vLilyWmsft_2-1634267947382.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-LilyW-msft
Community Support
Community Support

Hi @unchalem 

You can add a judgment condition before sending the email, if the file name is 'D1_DMSOM004_TEMPLATE_2', then send the email, otherwise the email will not be sent.

Because the display name includes the file extension, so I use contains here to judge.

vLilyWmsft_1-1634267419632.png

Or use the following formula to get the file name without extension,then judge whether the file name is equal to D1_DMSOM004_TEMPLATE_2.

Expression:first(split(outputs('Get_file_metadata_using_path')?['body/DisplayName'],'.'))

vLilyWmsft_2-1634267947382.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,807)