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 / attachment type suffix
Power Automate
Answered

attachment type suffix

(0) ShareShare
ReportReport
Posted on by 2,249
I am unable to add the below formula for extracting document type
last(split(items('Apply_to_each_2')?['name'],'.')) //how to add document extension 
 
Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,937 Super User 2026 Season 1 on at

    (1) Use the ends with condition to check if the attachment name ends with .png

    Use the ends with condition, and check if the filename ends with dot PNG

    (2) For the filename in the Create file action:  - you can use an expression in place of the filename:

    concat(
        first(split(items('Apply_to_each')?['name'], '.')),
        '_',
        body('Convert_time_zone'),
        '.',
        last(split(items('Apply_to_each')?['name'], '.'))
    )
    


    Create file action - I used an expression for the filename


    This should generate filenames in the format (depending on the format string of the converted time) :

    Examples of the filenames generated using the expression above
     
    Ellis

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard