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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

attachment type suffix

(0) ShareShare
ReportReport
Posted on by 2,247
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 
 
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,465 Super User 2025 Season 2 on at
    attachment type suffix

    (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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 650 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 341 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard