cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

how to get the Attachment in SP list to show in PowerApps in the gallery? help

Hi

 

I am trying to call back the attachment in SP list 

when I submit the form with attachment , it does show the attachment in the gallery1.PNG

 

how to remove the icon attach file and only allow user to click on the file and open to view???  As for now, when I click on the file it download it. which I don't want.

 

And how not to show all the attachment inside the Gallery from SP list and only type in to show selected attachments eg by  vendor name (single text) and Invoice Number in SP List to match and show the attachment and submit another new data and attachment to the SP vendor row in list?

 

These are pdf files.  thanks.

 

Regards

 

 

1 REPLY 1
Super User III
Super User III

Hi @bbsin ,

Firstly, you cannot do all of that inside the attachment control, however you can put a Gallery outside the form (assuming you have selected the form from a gallery) if you only wanted PDFs displayed with the Items

Filter(
    YourGalleryName.Selected.Attachments,
    Right(
        DisplayName,
        3
    ) = "pdf"
)

 You cannot filter attachments on an item by anything else than their name properties.

Put a label in the gallery with 

ThisItem.DisplayName

and on the OnSelect of the Label put

Launch(ThisItem.AbsoluteUri)

 and it will open the file (instead of downloading it)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (59,870)