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,081 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 442

#2
Vish WR Profile Picture

Vish WR 328

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard