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 / Multiple Attachment Wi...
Power Apps
Unanswered

Multiple Attachment Wizardry

(0) ShareShare
ReportReport
Posted on by 48

@Reza I am attempting to use the sample app that you provided ("Multiple Attachment App") from
https://github.com/rdorrani/PowerApps/tree/master/Attachments

I am having trouble understanding the code in the buttons (specifically the "RemoveIf" part--to me it would make more sense if we were removing the "Travel" values here?):

 

ClearCollect(
 colProjectAttachs,
 DataCardValue7.Attachments
);
UpdateIf(
 colProjectAttachs,
 !StartsWith(DisplayName,"Project-") ,
 {
 Name: "Project-" & Name,
 DisplayName: "Project-" & DisplayName
 }
);
RemoveIf(
 colFinalAttachments,
 "Project-" in DisplayName
);
Collect(
 colFinalAttachments,
 colProjectAttachs
);

 

 

More specifically, for my use case I have "Source Docs" in one attachment column and "Final PDF" in one attachment column.  The "Final PDF" is named [FormNumber.pdf] from a FormNumber value column in the list. 

The Source Docs attachment column contains all the attachments (regardless of name), except for the Final PDF, and the Final PDF attachment column has only the Final PDF in it.  So essentially the only name I need to set is for the Final PDF, leaving the other attachments alone. 
I just need a better understanding of what the buttons do so that I can modify the code for my purpose. 

And, I am also missing some setting or code somewhere, because I am not understanding what is limiting each column to it's associated attachments. 

Thank you!

Categories:
  • SLPS Profile Picture
    48 on at

    I figured out this part:

     

    And, I am also missing some setting or code somewhere, because I am not understanding what is limiting each column to it's associated attachments. 

  • SLPS Profile Picture
    48 on at

    Covering up the delete buttons FTW 😛

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard