cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
blueicebummer
Level: Powered On

Returning attachments from gallery selection not of same data source

I've built (2) SharePoint lists (List 1 & List 2), one for housing data (List 1) and one for housing attachments (List 2). A column in list 2 is designated to house the ID #of the corresponding List 1 data. I need to do this to ensure proper flow functionality. I'm looking to select an item from a single gallery in a powerapp and subsequently navigate to a new detail screen with 2 forms visible. 1 form will show the selected item details in a form (List 1.selecteditem) - have this accomplished. I also want the second form on the screen to return the attachments of List 2 with file names displayed of all attachments based on filtering the attachments to that of the selecteditem.ID matching that of the attachments List column. Is this possible? If so, what coding or variables/collections would I need?
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Returning attachments from gallery selection not of same data source

Hi @blueicebummer ,

 

This can be achieved by setting below formula on the Item property of the 2nd Form:

Lookup(List2,LookupColumnName.Value=Gallery1.Selected.ID)

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Returning attachments from gallery selection not of same data source

Is there a reason you cannot display the attachments in a gallery? You could just have a filtered gallery of attachments, filtering it based on ID = List1.Selected.ID. Forms are used to display an individual record not a list of records. Let me know if this helps. 

Community Support Team
Community Support Team

Re: Returning attachments from gallery selection not of same data source

Hi @blueicebummer ,

 

This can be achieved by setting below formula on the Item property of the 2nd Form:

Lookup(List2,LookupColumnName.Value=Gallery1.Selected.ID)

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

blueicebummer
Level: Powered On

Re: Returning attachments from gallery selection not of same data source

Thank you!! Beyond the form item, the only additional piece was labeling the default of the attachments datacard to the same lookup but with the addition of .attachments

It worked perfectly.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,868)