web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to filter data sou...
Power Apps
Unanswered

How to filter data source to loop all rows with selected gallery item and insert them with new record on new gallery item

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I have Gallery1 to show versions of my record items and Myyntihinnasto Gallery to show needed data for each Gallery1 item. When I create a new version to Gallery1 it should first collect all rows from Myyntihinnasto Gallery and create new version to Gallery1 and insert all rows on Myyntihinnasto to new Gallery1 item. Now it creates a new version to Gallery1 and first row of Myyntihinnasto with 4 times. How should I filter that my collection will pick up only needed rows?

 

ClearCollect(Myyntitaulu;Filter('[dbo].[Myyntihinnasto]'; VersionID = Gallery1.Selected.VersionID));;ForAll(Myyntitaulu;Patch('[dbo].[Myyntihinnasto]'; Defaults('[dbo].[Myyntihinnasto]'); { Kpl: Value(DataCardValue89.Text);PintaAla:Value(DataCardValue90.Text); MHEURm2:Value(DataCardValue87.Text); Tyyppi: DataCardValue91.Text;VersionID:Value(TextInput29.Text);TonttiID:Gallery2.Selected.Tunnus } ))

Myyntihinnasto Gallery - Power Apps.png
Version gallery - Power Apps.png
Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is there a way to collect multiple rows of sql table to collection? It collects only first row. I think that is basically my problem. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard