cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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. 

Highlighted
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

Highlighted
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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