Post #17 of our Build Flows Faster series covering our new utility actions for Power Automate. Today’s lesson is about obtaining a file extension from a filename in Power Automate.
Our utility actions are targeted at helping you build flows more quickly with less complexity, and they brilliantly only use 0.05 actions from your Encodian Flowr and Vertr subscription allowance. For example, under a standard plan that permits 500 actions per month (uses), you could use the utility actions 10,000 times!
Introducing the ‘Get File Extension’ Utility Action
Our ‘Get File Extension‘ utility action for Power Automate obtains the file extension as a string value from the filename string value provided. In simple terms, the action returns the text located after the last ‘.’ found within the string value provided, thus ‘this.is.an.example.value‘ would return ‘value‘.
Video Guide: Get the file extension of a filename in Power Automate
Instructions: Get the file extension of a filename in Power Automate
As with many of our utility actions, there are a myriad of scenarios where you may need to obtain the file extension of a filename. Therefore, we’ll focus on how the ‘Get File Extension‘ utility action works instead of focusing on a specific scenario.
Consider the following basic and manually triggered flow:
Get the file extension
Let’s configure the flow to obtain the file extension and send the result back within an email.
1. Add the ‘Get File Extension‘ utility action
1.a Filename: Select the ‘Filename‘ property provided by the trigger action
Send an email
2. Add the ‘Send me an email notification‘ action
2.a. Subject: Configure the email subject value as required
2.b. Body: Configure the email body as required, including the ‘Result‘ property provided by the ‘Get File Extension‘ utility action
Upon execution, the following email will be generated:
If you require further advice or support regarding Encodian utility actions, please email our support team at firstname.lastname@example.org where the team would be delighted to help.