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 / Disable Attachments be...
Power Apps
Unanswered

Disable Attachments beginning with "Reserved" in Attachment control

(0) ShareShare
ReportReport
Posted on by 11

Hello everyone,

I am using an attachment DataCard and AddMedia control in my PowerApp, which accesses my 'A3 Report Backend' database. When I add and upload a new image using the AddMedia control, the image appears with its filename (starting with "Reserved") in the attachment list as well, since images are also included there.

For the user, it can be very confusing to see the image filenames in the attachment list after each image update. Is there a way to prevent these images from appearing in the attachment list after updating the images in the AddMedia control? My goal is to hide all attachments that start with the filename "Reserved...".

Using the following syntax:


A3_Report.png

 

I only display or make visible the entries that do not start with "Reserved". However, I still have the problem that I cannot download the attachments anymore. Downloading the attachments works when Parent.Default is set in the Items property.

Is there a way to combine this?

I am grateful for any help.

Thank you.

Categories:
  • RogierE Profile Picture
    879 Moderator on at

    Would it be an idea to make your filter optional with a toggle? 
    so you could add the toggle just above your attachments overview, set the standard of the toggle to “true” and then change your Items to:

     

    If(Toggle.Value=true, Parent.Default,Filter(ThisItem.Anlagen;Not(StartsWith(DisplayName;”Reserved”))))

     

    Please LIKE the reply and ACCEPT it as the solution if the answer is what you were looking for.
    (to help me grow in community rank and help others find the solution)

     

  • Adam9595 Profile Picture
    11 on at
     

    Hello RogierE,

    Thank you for your message. I don't think I will make progress with your syntax. When the toggle is active, THEN Parent.Default, OTHERWISE Filter(.....). I want to combine both functions and not display them separately.

    Best regards, Adam

  • RogierE Profile Picture
    879 Moderator on at

    I’m sorry. I might have the wrong understanding of your requirement. Is it that the pictures in files with “reserved” should not be visible to the user but should be downloadable by you? Or is it that as a consequence of filtering you can no longer download any of the attachments, also the visible ones that do not start with “reserved” ? (Or is it something else even ? ☺️)

  • Adam9595 Profile Picture
    11 on at

    Hi @RogierE ,

    thanks for your message. Indeed, I meant that i want to set a filter on the attachment control elements so that i can only filter the attachments that do not begin with "Reserved..." Additionally, the display attachment should be downloadable.

    Best regards, 
    Adam

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard