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:
  • Verified answer
    Ellis Karim Profile Picture
    12,315 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard