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 / UpdateIf Not working f...
Power Apps
Answered

UpdateIf Not working for me

(0) ShareShare
ReportReport
Posted on by 1,088

I have two SharePoint Lists.

One is Clients and one is Sales

Both have a "Client" column which is the client name.

 

I have a edit form in PowerApps and I can edit the client names in the Clients list, no problem.  but I also want to update the client names across all sales records too if someone edits the name.

 

So onsuccess for the edit form, I added this:

UpdateIf(
 VirtualPZone,
 Client = OldClientName,
 {Client: NewClientName}
)

 

It doesn't give me any errors, but it just doesn't update.  I have verified the names in the SharePoint list match the variables in OldClientName.

 

Am I using UpdateIf incorrectly?  Like I said it doesn't give me any errors.

 

Could it be because across Data Sources I have more than one "Client" column?

 

Thanks,

Terry

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    HI @Mattw112IG 

    Ambiguity can cause these type of issues, however you have only mentioned one in your code with no reference to the other list.

    The other issue is that you have probably just updated a record that UpdateIf is also about to update.

    To test this theory, put the UpdateIf on a button and see if it works from there.

  • Mattw112b Profile Picture
    1,088 on at

    So it did work from a button... 

     

    But I am not editing the record I am trying to updateif, I am editing the clients list, then trying to updateif the sales list... 

     

    Thanks,

    Terry

  • Mattw112b Profile Picture
    1,088 on at

    Hmm, so after my last post I put the code back in the onsuccess, deleted the button, etc. and reran and it worked??

     

    Only other thing I did was save and close the app and then reopen it.  I'm wondering if it wasn't updating because the app just needed to be restarted?

     

    Thanks!

    Terry

  • Verified answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @Mattw112IG ,

    My bit of detective work was only on the basis that you said it was not working (which it should have been) and I was trying to eliminate a possible cause - and yes - saving, closing and reopening is sometimes a good idea after changes.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard