cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NHGA
Advocate I
Advocate I

SharePoint Attachments in Collections

Hi,

 

I just hit the feared 2 000 rows limits in one of our PowerApps and have solved this quite ok with moving from referencing the underlying Sharepoint-list to a filtered collection table instead.

 

The problem is that we then suddenly seem to have lost the ability to directly reference the attachments.

 

This formula used to work perfectly:

 

Launch(Last(ThisItem.'{Attachments}').AbsoluteUri&"?web=1") 

 

It basically opened the last attached PDF-file directly from a Gallery-list.

 

Are there any other options to get the same functionality with a collection.

 

If I move forward/filter down to the actual underlying item I can open the attachments without a problem, but I would prefer to have that early preview functionality.

 

Kind regards

 

Niklas

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @NHGA ,

 

I did not get what's the meaning of "move forward/filter down to the actual underlying item", but I made a test on my end with your original formula a little modified would easily make the your scenario work:

Launch(Last(LookUp(SPlist,Title/ID= ThisItem.Title/ID).Attachments).AbsoluteUri&"?web=1")

 

Please have a try, and hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-jefferni
Community Support
Community Support

Hi @NHGA ,

 

I did not get what's the meaning of "move forward/filter down to the actual underlying item", but I made a test on my end with your original formula a little modified would easily make the your scenario work:

Launch(Last(LookUp(SPlist,Title/ID= ThisItem.Title/ID).Attachments).AbsoluteUri&"?web=1")

 

Please have a try, and hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Aaah. So simple and beautiful. Worked perfectly.

 

Just double checking: There are no 2 000 limits on the LookUp-query?

 

(I created a dirty work around where I had a second gallery list based on the Filter(SPlist,ID=selectedItem.ID), but the LookUp is of course what I was after.)

 

Thanks for the prompt solution. Power Apps community at its best.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,510)