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 / If(Patch statement errror
Power Apps
Answered

If(Patch statement errror

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Why is Power Apps upset? It doesn't seem to like the '=' sign or how the story ends.

If( NewEmployeeApprovalForm=FormMode.New,
Patch( NewMemberApprovalList, Defaults(NewMemberApprovalList),
{UnqID:DataCard_NewUnqID.Text,
SteNmNo:DataCard_NewSitNmNo.Text,
Park:DataCard_NewMemberParkDD.Selected.Title,
NPSReg:DataCard_NewNPSReg.Text,
DOIReg:Value(DataCard_NewDOIReg.Text),
LstNm:DataCard_NewLastName.Text,
FrstNm:DataCard_NewFirstName.Text,
MI:DataCard_NewMI.Text,
FullNm:DataCard_NewFullName.Text,
UsrNm:DataCard_NewUserName.Text,
MemEmail:DataCard_NewEmail.Text,
ECPark:DataCard_NewECParkLbl.Text,
EcMem:DataCard_NewECMemLbl.Text,
ActvECMem:DataCard_NewActECMemLbl.Text,
ProgramHeirarchy:DataCard_NewProgramHierarchyDD.SelectedText.Value } )

3csman_0-1612642216760.png

 

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    The 1st section of your IF statement needs to be corrected...

     

    NewEmployeeApprovalForm.Mode=FormMode.New

     

     

    ...and a bracket mustbe added at the end.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    ...and, I needed to add a parentheses at the end.

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard