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 / Was the DisplayName pr...
Power Apps
Answered

Was the DisplayName property removed from the Attachments property in Attachment Control?

(0) ShareShare
ReportReport
Posted on by 31

I am trying to follow this guide for multiple attachment controls: Power Apps Attachment Control Tutorial | Multiple Attachment Controls | Tag SharePoint attachments - YouTube

 

However, I am encountering an error in the OnAddFile code:

 

ClearCollect(colAttachments1,Self.Attachments);
UpdateIf(colAttachments1,
!(First(Split(DisplayName,"-")).Result in colAttachTags),
{Name: "Tes" & "-" & Name,
DisplayName: "Tes" & "-" & DisplayName
}
)

 

As the DisplayName can no longer be found.


Was PowerApps updated and the DisplayName has been removed from the Attachment items?

 

Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @lancea1 ,

     

    I'm not sure what it was one year ago, but we generally use Name column only. I didn't realize whether the DisplayName column was there before.

    vjefferni_0-1692775744905.png

     

    Best regards,

  • lancea1 Profile Picture
    31 on at

    I have tried using the Name column to replicate the YouTube video. Unfortunately, even if I changed the Name property, the filename being saved and displayed did not reflect. For example, if I tried to append a "Travel-" prefix, it still saved with just the filename only. Is there no alternative to be able to change the filename displayed on the Attachments control?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @lancea1 ,

     

    Could you please double check if you have place colAttachments in Items of the Attachments Control?

     

    Best regards,

  • Verified answer
    lancea1 Profile Picture
    31 on at

    I think I figured it out. For some reason, you need to put it into a collection first like so: ClearCollect(yourCol, Defaults(<yourDataSource>).Attachments).

     

    Doing it that way and then accessing it rather than the Attachments property directly, you can access and manipulate the DisplayName property.

     

    I do not know the reason why it was made that way though, but I appreciate your help.

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard