Skip to main content

Notifications

Power Automate - Building Flows
Answered

attachment type suffix

Posted on by 2,059
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 
 
  • Verified answer
    EKarim Profile Picture
    EKarim 10,290 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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard