cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

downloading attachments from sharepoint

Right now i can click on an edit icon for a gallery item, it pulls up a form, i can add an attachment, and when i submit it returns to the gallery screen and an icon appears indicating there is an attachment for that item. I want to be able to click on that icon and immediately view or at least download the attachment associated with that item in the gallery. The best i can do is link to the sharepoint item that has the attachments allllll the way at the bottom. 😐 Any suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: downloading attachments from sharepoint

Hi @KyleJ ,

 

1. add an icon in the gallery

2. set it visible property:  ThisItem.'Has attachments' 

3. set it OnSelect property: Launch(First(ThisItem.Attachments).AbsoluteUri)

Note: Even though you said you just add an attachment, it can be multiple, so it is a table, we have to use First function to get the first attachments URL.

Snipaste_2020-01-03_15-24-24.png

If you have to open other attachments, you can add pop-up box(gallery) to show all attachments when you click the icon.

1. set OnVisible of screen: Set(Var,false)

2. Set OnSelect of Icon: Set(Var,!Var);ClearCollect(ColAtt,ThisItem.Attachments)

3. Add gallery, set Items property: ColAtt

4. Set OnSelect of Gallery: Launch(ThisItem.AbsoluteUri)

Then, it will be like this:StoG_16.gif

Sik

View solution in original post

2 REPLIES 2
Super User
Super User

Re: downloading attachments from sharepoint

Hi @KyleJ 

I don't believe that would be possible. The attachments control on a form doesn't have any process that you could call on a button, it is a specialized control that handles how it uploads and downloads in the background. You also can't put it on a gallery item, the way you can with other columns. 

---
Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."

Highlighted
Community Support
Community Support

Re: downloading attachments from sharepoint

Hi @KyleJ ,

 

1. add an icon in the gallery

2. set it visible property:  ThisItem.'Has attachments' 

3. set it OnSelect property: Launch(First(ThisItem.Attachments).AbsoluteUri)

Note: Even though you said you just add an attachment, it can be multiple, so it is a table, we have to use First function to get the first attachments URL.

Snipaste_2020-01-03_15-24-24.png

If you have to open other attachments, you can add pop-up box(gallery) to show all attachments when you click the icon.

1. set OnVisible of screen: Set(Var,false)

2. Set OnSelect of Icon: Set(Var,!Var);ClearCollect(ColAtt,ThisItem.Attachments)

3. Add gallery, set Items property: ColAtt

4. Set OnSelect of Gallery: Launch(ThisItem.AbsoluteUri)

Then, it will be like this:StoG_16.gif

Sik

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,846)