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))
Solved! Go to Solution.
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.
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.
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! 🙂
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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
53 | |
50 | |
37 | |
36 |
User | Count |
---|---|
274 | |
91 | |
85 | |
76 | |
75 |