Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Error in two functions, when if has got two logical tests

(0) ShareShare
ReportReport
Posted on by

Hey, I have a question regarding a formula error,

I get an error: Unexpected characters. The formula contains 'ParenClose' where 'Comma' is expected.
for the formula: 

Patch(Shortages,ThisItem,{Action:Dropdown2.Selected.Value}) ;
If(Dropdown2.Selected.Value = 'Action test'.Magazyn,
(Office365Outlook.SendEmailV2("pidom@gmail.com", "Subject", "Body" ),Dropdown2.Selected.Value = 'Action test'.MCO,
Office365Outlook.SendEmailV2("piter2@gmail.com","Subject","Body"))

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Error in two functions, when if has got two logical tests

    thanks 🙂

  • Verified answer
    Pstork1 Profile Picture
    67,045 Most Valuable Professional on at
    Re: Error in two functions, when if has got two logical tests

    I don't think you want the Open Parentheses in front of OfficeOutlook.SendEmailV2()  The way it is now doesn't close that parentheses until the end of the statement, which means the IF never gets closed.  Try this instead.

    Patch(Shortages,ThisItem,{Action:Dropdown2.Selected.Value});
    If(Dropdown2.Selected.Value = 'Action test'.Magazyn, 
     Office365Outlook.SendEmailV2("pidom@gmail.com", "Subject", "Body" ),
     Dropdown2.Selected.Value = 'Action test'.MCO, 
     Office365Outlook.SendEmailV2("piter2@gmail.com","Subject","Body")) 
     
    

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1