web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : /cHN53StNcGDjol9YYO1iW
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 28 Dec 2021 15:27:19 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"))

 

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 28 Dec 2021 at 15:40:55
    Re: Error in two functions, when if has got two logical tests

    thanks 🙂

  • Verified answer
    Pstork1 Profile Picture
    67,489 Most Valuable Professional on 28 Dec 2021 at 15:35:13
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Loading complete