cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SammyOlsson
Helper I
Helper I

A random true appears!

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))

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
fuzzy_fuzz
Resolver II
Resolver II

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.

View solution in original post

5 REPLIES 5
fuzzy_fuzz
Resolver II
Resolver II

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
Super User
Super User

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)

)
& Navigate(thankyou)


in the end of the code did the work! 🙂

RandyHayes
Super User
Super User

@SammyOlsson 

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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Ah ok! Thank you for that information @RandyHayes 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,877)