cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
blueicebummer
New Member

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
Community Support

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
Community Support

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
New Member

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (7,662)