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 do I update part o...
Power Apps
Answered

How do I update part of a row in collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I've got a collection with 10 fields(columns) and I'm trying to update only 2 fields in a specific row. 

If I use Update function , 2 fields are updated and rest are blank ( lets say I cant specify entire row as I dont have text inputs for all of them in the app ).

Patch function for some reason doesnt work : 

Patch(Power,First(Filter(Power,UNIQUE_KEY=Value(DataCardValue4.Text))),{UNIQUE_KEY:Value(DataCardValue4.Text),DEPT1_LAB_ACTUAL:Value(DataCardValue7.Text)})

and does nothing. 

 

Can you help please?

Thank you

Categories:
  • ChrisR Profile Picture
    141 on at

    I'm probably missing something, but filtering on UNIQUE_KEY=Value(DataCardValue4.Text) and then patching the same UNIQUE_KEY=Value(DataCardValue4.Text) seems odd.

     

    Just want to verify that this is an existing record in the collection.

     

     

    Thanks,

     

    Chris - IW Mentor PowerApps Training

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry I posted wrong code 😄 Correct one is below. Can this be something to do that I'm patching from the form? 

    I dont know I spent last 3 hours figuring out whats happening 😕

     

    atch(Power,First(Filter(Power,UNIQUE_KEY=Value(DataCardValue4.Text))),{DEPT1_VOL_ACTUAL:Value(DataCardValue4.Text),DEPT1_LAB_ACTUAL:Value(DataCardValue7.Text)})

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ChrisR

     

    I find out what was the problem... you cant patch nulls 🙂

  • PytByt Profile Picture
    943 on at

    Hi @Anonymous 

     

    How do you solved your problem?

    I have the similiar problem, that i need to edit and update records of the collection.

    Can i have the formula to update a collection record that you using?

    Thanks,

    pytbyt

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard