Skip to main content
Community site session details

Community site session details

Session Id : zi5dir08QfIjOnFGTZpYr0
Power Apps - Building Power Apps
Answered

Audit Gallery filtered by Main Gallery All Items ID using SQL Table

Like (0) ShareShare
ReportReport
Posted on 3 Oct 2022 16:02:03 by

I'm trying to figure out a way for my PowerApp that has two Galleries. I need to have the Audit Gallery that uses the Main Gallery selected Item using a SQL Table (dbo.AuditTest) information. In the Audit Gallery I need to show ALL items that have been changed/updated from the Main Gallery on submits. For example: You select a row (Main Gallery) that opens up a form to make updated changes then feeds into SQL Table called dbo.AuditTest. On the FORM there is a icon1 that will open up the Audit Gallery. Here is where I need to show ALL changes for that particular MainGallery selected Item. 

I'm new to PowerApps, and my apologies just not sure how to display this information in my Audit Gallery. Any help/suggestions will be appreciated. Thank you!

 

For example: In the SQL Table (dbo.AuditTest) I have the following items: I need to show ALL changes like below: So, on my Main Gallery I did select row ID 1. 

IDNameAssignedToSenderAddressCommentsUpdatedByUserUpdatedDateTime
1Jane DoeMickey MouseJohn Doe111 Doe LanetestingTest\username9/16/2022 20:12
1Jane DoeDonald DuckJohn Doe111 Doe LanetestingTest\username9/17/2022 21:12
1Jane DoeDonald DuckJohn Doe111 Doe Lanetesting test 11Test\username9/20/2022 18:12
  • Community Power Platform Member Profile Picture
    on 03 Oct 2022 at 20:51:39
    Re: Audit Gallery filtered by Main Gallery All Items ID using SQL Table

    @RandyHayes  - Thank you! Got it. Added in a filter and it worked. Thank you again. 

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 03 Oct 2022 at 16:22:10
    Re: Audit Gallery filtered by Main Gallery All Items ID using SQL Table

    @Anonymous 

    You would need to filter your Audit table by information pertaining to that main gallery selection (preferably by the ID of the record). 

    I am not seeing any record Identification in your list...so you might want to consider putting the record ID in your audit list and then it would be quite simple with just a Filter statement.

     

    I hope this is helpful for you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2