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 / Update 2 data sources ...
Power Apps
Unanswered

Update 2 data sources from 1 gallery

(0) ShareShare
ReportReport
Posted on by 118

Goal:

2 SPL's, "Q Tasks" and "Q Completed". Both have a "Reviewed" column. PA has gallery with items set by filtering of "Q Completed" on ISBlank(Reviewed)=true. Reviewer has option to "Review All" items in gallery with checkbox. Once review is finished a button uses UpdateIf to update list records in both lists with review date.

Problem:

Can't figure out how to update all target records in "Q Tasks"

Attempt:

ForAll(Filter(WeekGallery.AllItems, WeeklyReview.Value),UpdateIf('Q Completed', Record_ID=WeekRecord.Text,
       {Reviewed:WeeklyDate.SelectedDate}));                                                                 //This part works, all list records updated//
ForAll(Filter(WeekGallery.AllItems, WeeklyReview.Value),UpdateIf('Q Tasks', TaskID=WeekID.Text,
       {Reviewed:WeeklyDate.SelectedDate}));                                                                //This part only updates one record in list//
Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Microbes,

    In your second expression, you need to determine the primary key between your 'Q Tasks' and 'Q Completed'.

    Make sure that the TaskID shares the same value with WeekID text in the WeekGallery.

  • EG-31080115-0 Profile Picture
    118 on at

    @v-qiaqi-msft , TaskID and WeekID are in fact the same and was used as primary key. However, it appears that the ForAll doesn't work in the 2nd expression as it only updates one record (last gallery item) in the 'Q Tasks' list.

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard