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 / Updating child status ...
Power Apps
Answered

Updating child status fields

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

After 3 hours of solid searching + trial and error attempts, I've finally given in and come on here to ask a question. Great forum by the way. 

 

I'm building a Project cost app, which is currently using Excel for datasources:

I have a list of unique projects in a Project Table, and each has an assigned Status; Draft, Submitted, Approved. 

 

And each project has a Cost section where you can allocate a number of cost items to each project. These elements are held in a Cost_table. These link to the Projects using a project_ID field.

 

What I'm hoping to do is update a field in the Cost_table called Status which gets updated whenever the Project Status gets updated, but despite lots of attempts with the Patch / ForAll commands I've had limited sucess. 

I managed to get it to update one record, but it didn't do all of them. 

 

This is what I used to get one record updated:

CTC is a collection of the Cost_table

Gallery1 is displaying the Project Table

ForALL(CTC,Patch(Cost_table,Lookup(CTC, Project_ID=Gallery1.Selected.Project__ID),{Status:Status}))

 

All help greatly appreciated.

 

Thanks

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

     

    You might consider using the UpdateIf function for this operation.

     

    UpdateIf(CTC, Project_ID=Gallery1.Selected.Project__ID, {Status: yourStatus})

     

    This will update all records that match that criteria of the ProjectID.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Why thank you sir. That worked perfectly!

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard