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 / Error in Patch Condiiton
Power Apps
Unanswered

Error in Patch Condiiton

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good morning, All!

 

Can someone clarify for me why Power Apps isn't happy with the following?

 

Patch(MemberCertsandQualsList,
UpdateIf( MemberCertsandQualsList, ID=varEditCertQualRecord.ID,
{DteofCQ:Value(UpdateDateofAwardDatePicker.SelectedDate)};


3csman_0-1613145102043.png

 

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    @Anonymous ,

    You have UpdateIf nested in a Patch function. Both of those functions modify values in a record, so you need to nest them. 

     

    If varEditCertQualRecord is the record in MemberCertsandQualsList that needs to be updated then it would look like this:

    Patch(MemberCertsandQualsList,varEditCertQualRecord,
    {DteofCQ:Value(UpdateDateofAwardDatePicker.SelectedDate)})

     

    If varEditCertQualRecord is not a record in MemberCertsandQualsList then:

    UpdateIf( MemberCertsandQualsList, ID=varEditCertQualRecord.ID,
    {DteofCQ:Value(UpdateDateofAwardDatePicker.SelectedDate)})

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What about this; its what I pounded my way to; it seems to be working. Thoughts?

     

    Also, I just posted another. For some reason the DteofCQ and CQYr are not translating to the files names being created for the uploaded doc, the CQYr is not updating the list, and neither content is appearing the Power Apps generated email....

     

    UpdateIf(MemberCertsandQualsList,
    ID = varCertQualRecord.ID,
    {DteofCQ: Value(UpdateDateofAwardDatePicker.SelectedDate),
    NFPAStandardYear: Value(UpdateStandardYearFld.Text)});

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, a Patch of an existing record. It didn't like your suggestion. Updating the DteofcQ and CQYr and upload and image.

    3csman_0-1613172064665.png

     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard