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

Notifications

Announcements

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:
I have the same question (0)
  • RogierE Profile Picture
    875 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
    875 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard