Hello! (a newbie question)
I am buildning an canvas app to gather "order" information and send this information/data to a specific email.
What is the best way to do this, right now I am trying to create textlabels to fill with information and then when user click "send"-button I have Office365Outlook.SendEmail made onselect.
The mail sends but with I don't know how to gather that information in the textlabels.
I don't need to save this data to SharePoint or anything - I wish that the information sends without beeing saved anywhere.
Best regards,
Solved! Go to Solution.
Hi @SammyOlsson
You can add line breaks with the HTML br tag like so:
Office365Outlook.SendEmailV2("user@recipientDomain.com",
"Email Subject" & Label1.Text,
"Label1 Text" & Label1.Text & "<br/>" &
"Label2 Text" & Label2.Text & "<br/>" &
"DatePicker Text" & Text(DatePicker1.SelectedDate) & "<br/>" &
"Checkbox Text" & If(CheckBox1.Value,
"true text","false text")
)
The following formula appends the text from Label1 to the subject and body of the email.
To reference a text input control, you would replace Label1 with the name of your textbox (eg, TextInputControl1.Text).
Office365Outlook.SendEmailV2("user@recipientDomain.com",
"Email Subject" & Label1.Text,
"Email Body" & Label1.Text
)
@timl Thanks for the reply!
But what if i have like five Textlabels, a datepicker and a checkbox.
And I want all that data in the email.
"Email Body" & Label1.Text, Label2.Text, DatePicker, Checkbox works in that case?
You can append additional values like so:
Office365Outlook.SendEmailV2("user@recipientDomain.com",
"Email Subject" & Label1.Text,
"Label1 Text" & Label1.Text &
"Label2 Text" & Label2.Text &
"DatePicker Text" & Text(DatePicker1.SelectedDate) &
"Checkbox Text" & If(CheckBox1.Value,
"true text","false text")
)
Thank you @timl - works good exepct that i am getting all the Labels in a row. Any smart tip how to enter new row between the labels?
Hi @SammyOlsson
You can add line breaks with the HTML br tag like so:
Office365Outlook.SendEmailV2("user@recipientDomain.com",
"Email Subject" & Label1.Text,
"Label1 Text" & Label1.Text & "<br/>" &
"Label2 Text" & Label2.Text & "<br/>" &
"DatePicker Text" & Text(DatePicker1.SelectedDate) & "<br/>" &
"Checkbox Text" & If(CheckBox1.Value,
"true text","false text")
)
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
52 | |
51 | |
34 | |
33 |
User | Count |
---|---|
267 | |
97 | |
84 | |
76 | |
73 |