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

Get Filename without file extension for Email Subject

I have a flow working perfectly that emails a file when it is added to a sharepoint folder.  However, I want the Subject to be the filename WITHOUT the file extension.  How do I do that?

 

1 REPLY 1
Community Support Team
Community Support Team

Re: Get Filename without file extension for Email Subject

Hi @jaimee1205,

 

Could you please share a screenshot of your flow's configuration?

Do you want to type the file name without the file extension within the Subject field of the "Send an email" action?

 

I have made a test on my side, please take a try with the following workaround:4.JPGThe flow works successfully as below:5.JPG

 

6.JPG

 

 

 

In addition, you could also take a try with the following workaround:7.JPG

Within Subject field of the "Send an email" action, type the following formula:

split(triggerBody()?['{FilenameWithExtension}'],'.')[0]

More details about using expression in flow actions, please check the following article:

Use expression in flow actions

 

 

Best regards,

Kris

 

 

 

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

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

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
Users online (4,594)