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

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested Answer

Gallery of sharepoint attachments

(0) ShareShare
ReportReport
Posted on by 40
Good morning,
 
I have created an app with a gallery that displays attachments from a sharepoint list. I have the gallery set up to display the attachment and a few options to email it, open it online to download, etc. Everything works great. The only thing that bugs me is that most of the attachments are excel, word, pdf, etc. so the gallery screen is blank. I know that these file types wont be displayed in powerapps, but what i am asking is there a way for the gallery to display anything at all in regards to the attachment like an excel symbol if it is an excel document or anything?
 
Quite a few people on these forums helped me out with a couple things and you all have been great and the help is more than appreciated a lot ........ I'm learning quite a bit from you guys.
 
 
I have the same question (0)
  • Suggested answer
    venturemavenwill Profile Picture
    1,189 Super User 2025 Season 2 on at
    Gallery of sharepoint attachments
    When you use a gallery to display the attachment, you should be able to access the file name "I believe through the .Name" property
     
    This will contain the file name and extension name. 
     
    What you can do then, for example, is to use an Image control and use a Switch command that checks the file name, and based on the extension type, display different pictures.
     
    Hope this helps. 
  • CU10021407-0 Profile Picture
    40 on at
    Gallery of sharepoint attachments
    , great idea. thanks!

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard