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 Apps / Get the file name of l...
Power Apps
Answered

Get the file name of last attachment

(0) ShareShare
ReportReport
Posted on by 125

Hello!

 

I have a power automate that will trigger if a specific file name is attached to the attachment control. But first I want to set an If Statement wherein...

 

If(Last(attachmentControl.Attachments) = "test1.xlsx", true, false)

 

I am getting an error 

philifova_0-1668474369865.png

 

 

philifova_0-1668474082267.png

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @philifova ,

    You should just need (you do not require If/true/false)

    Last(attachmentControl.Attachments).Name = "test1.xlsx"

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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 Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard