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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,194)