web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get File Name Extensio...
Power Automate
Unanswered

Get File Name Extension from a Form Response Uploaded File

(0) ShareShare
ReportReport
Posted on by 206

Hello, 

 

Can someone please help me extract the file type when a user uploads a new file via Forms ?

 

I tried different variation of this expression but cannot get it working ; 

 

last(split(triggerbody()?['file']?['name'], '.'))
last(split(triggerOutputs()?['body/{FilenameWithExtension}'],'.'))
 
Here is my flow ; 
 
batvan276_0-1648660308773.png

 

batvan276_1-1648660353705.png

I only want anything after "." .Any input is appreciated. 

 

 

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,079 on at

    Have a look at raw output of "Get response details" and use something like

    last(split(outputs('Get_response_details')?['body/re40bbf33c3d742f4b6cfef8a6cb8225b'], '.'))

     

     

  • batvan276 Profile Picture
    206 on at

    I got it working. After the Compose Step I used the below expression ; 

     

    last(split(outputs('Compose'),'.'))
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard