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 / A random true appears!
Power Apps
Answered

A random true appears!

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Heay! 

 

I am bulding an app to users to click in checkboxes and comboboxes, then when submit i use the Office365Outlook.SendEmailV2-function to get a summery of the information.

 

Everything looks fine BUT a random true appears in the bottom of the e-mail and i can not figure out why.

Bellow is my code for the submit button - or should I looke somewhere else than in the code?

 

Thank you in advance!

 

 

 

Office365Outlook.SendEmailV2("mymail@mail.com", 
"Ny medarbetare och hårdvara " & TextInput1_3.Text & " " & TextInput2_3.Text,
"<b>Förnamn:</b> " & TextInput1_3.Text & "<br/>" &
"<b>Efternamn:</b> " & TextInput2_3.Text & "<br/>" &
"<b>Telefonnummer:</b> " & TextInput4_3.Text & "<br/>" &
"<b>E-post:</b> " & TextInput5_2.Text & "<br/>" &
"<b>Startdatum:</b> " & Text(DatePicker1_2.SelectedDate) & " 
<br/>" &
"<b>Övrig information:</b> " & TextInput3_3.Text & "<br/>" &
"<br/>" &
"<b>Dator:</b> " & Text(ComboBox2_2.Selected.Value) & "<br/>" &
"<b>Telefon:</b> " & Text(ComboBox2_4.Selected.Value) & "<br/>" &
"<b>Leveransadress för hårdvara:</b> " & TextInput3_4.Text & " 
<br/>" &
"<b>Övrig information:</b> " & TextInput9_1.Text & "<br/>" &
"<br/>" &
"<b>Tillbehör</b>" & "<br/>" &
"<b>iPhone Headset in-ear:</b> " & If(Checkbox3_7.Value,"true") & "<br/>" &
"<b>Android Headset in-ear:</b> " & If(Checkbox3_6.Value, "true") & "<br/>" &
"<b>Headset on-ear:</b> " & If(Checkbox3_3.Value,"true") & "<br/>" &
"<b>Tangentbord och mus:</b> " & If(Checkbox3_9.Value,"true") & "<br/>" & 
"<b>Dockningsstation till laptop:</b> " & If(Checkbox3_8.Value,"true") & "<br/>" &
"<br/>" &
"<br/>" &
Navigate(thankyou))

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    fuzzy_fuzz Profile Picture
    229 on at

    Might be because the Navigate function is inside the SendEmail function. I would say it returns a true when the app navigates to another screen.

     

    Try putting Navigate outside SendEmail.

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at
    Office365Outlook.SendEmailV2("mymail@mail.com", 
    "Ny medarbetare och hårdvara " & TextInput1_3.Text & " " & TextInput2_3.Text,
    "<b>Förnamn:</b> " & TextInput1_3.Text & "<br/>" &
    "<b>Efternamn:</b> " & TextInput2_3.Text & "<br/>" &
    "<b>Telefonnummer:</b> " & TextInput4_3.Text & "<br/>" &
    "<b>E-post:</b> " & TextInput5_2.Text & "<br/>" &
    "<b>Startdatum:</b> " & Text(DatePicker1_2.SelectedDate) & " 
    <br/>" &
    "<b>Övrig information:</b> " & TextInput3_3.Text & "<br/>" &
    "<br/>" &
    "<b>Dator:</b> " & Text(ComboBox2_2.Selected.Value) & "<br/>" &
    "<b>Telefon:</b> " & Text(ComboBox2_4.Selected.Value) & "<br/>" &
    "<b>Leveransadress för hårdvara:</b> " & TextInput3_4.Text & " 
    <br/>" &
    "<b>Övrig information:</b> " & TextInput9_1.Text & "<br/>" &
    "<br/>" &
    "<b>Tillbehör</b>" & "<br/>" &
    "<b>iPhone Headset in-ear:</b> " & If(Checkbox3_7.Value,"true") & "<br/>" &
    "<b>Android Headset in-ear:</b> " & If(Checkbox3_6.Value, "true") & "<br/>" &
    "<b>Headset on-ear:</b> " & If(Checkbox3_3.Value,"true") & "<br/>" &
    "<b>Tangentbord och mus:</b> " & If(Checkbox3_9.Value,"true") & "<br/>" & 
    "<b>Dockningsstation till laptop:</b> " & If(Checkbox3_8.Value,"true") & "<br/>" &
    "<br/>" &
    "<br/>"
    )
    Navigate(thankyou)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    )
    & Navigate(thankyou)


    in the end of the code did the work! 🙂

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Just an FYI... & is not the function chaining syntax.  Your formula should end with:

    );
    Navigate(thankyou)

    When you use the ampersand character to separate functions, you are really telling PowerApps to concatenate all of the returns of your functions.  This is not correct!

     

    Use the semicolon to separate the functions.  If you are in a region where you use semicolons to separate parameters, then you would use double semicolons to separate commands.

    Please refer to the PowerApps operators for more information. 

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ah ok! Thank you for that information @RandyHayes 

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard