Hello Team,
I have a form with like 15 questions and I want to send out an email when ssomeone submit the form with the submitted form data. Can someone please guide how I can send the email from powerapps in proper format?
Thanks,
Hi, if the person field here is a people picker that allows multiple selections, how would I add this as above please?
Hello, were you ever able to resolve this? I have the exact same problem where my form has well over 25 fields and emailing them is crucial for my form.
Hi Yashag,
kindly you might help me in this am trying to send email by button on detailscreen1 where the detailform1 to be sent as a table.. i have created the html text for that in a new screen but the code am using to submit the email is not working its not feeding the html table i have created.. can you help me what is missing or wrong with the code?
Office365Outlook.SendEmailV2("nisrina@EMAIL.COM; LMathias@EMAIL.COM","HUB Shift Report App Submission Update",
"Dear Staff on Duty,
<p>Kindly note the below Hub Shift Report App Submission details.
<table width: 500px border='1' cellpadding='2' style=' border:1px solid black; border-collapse:collapse'>
<thead>
<tr>
<th colspan='2'>
<div style='text-align: center'><span style='font-family: Calibri'>HUB SHIFT REPORT</span></div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>DATE:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & Text(DataCardValue16.SelectedDate,"[$-en-US]dd-mmm-yyyy") & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Shift:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue10.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>HOM:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue12.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>GODM:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue27.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>EASDOM:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue28.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>VIP Handling:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue41.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>VIP Handling Section Last updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue13.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>lounge & Limousine:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue20.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>lounge & Limousine Section Last updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue48.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Premium Check in:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue21.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Premium Check in Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue25.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Economy Check in:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue15.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Economy Check in Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue50.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>ADAC:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue45.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>ADAC Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue49.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>CBP:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue24.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>CBP Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue55.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Arrival Services:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue44.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Arrival Services Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue52.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Stakeholders-Police-Immigration,Customs:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue42.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Stakeholders- Police, Immigration, Customs Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue51.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Ramp & Baggage:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue47.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Ramp & Baggage Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue19.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>PRM & Special Handling:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue22.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>PRM & Special Handling Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue53.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Transfer Desk:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue43.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Transfer Desk Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue54.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Gates:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue46.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Gates Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue17.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Airports Systems:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue40.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Airports Systems Section Last Updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue18.Text & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Other:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue23.TabIndex & "</span></td>
</tr>
<tr>
<td style='width: 250px'><span style='font-family: Calibri'>Other section last updated by:</span></td>
<td style='width: 250px; text-align: center'><span style='font-family: Calibri'>" & DataCardValue26.TabIndex & " </span></td>
</tr>
</tbody>
</table>
<p>Kind regards,<br>
" & Office365Users.MyProfileV2().displayName &
"<br>" & Office365Users.MyProfileV2().jobTitle & " - " & Office365Users.MyProfileV2().city
, { IsHtml: true })
This is great for simple forms with just a few fields, but what if I have a PowerApp form with hundreds of fields? The send email function would get ridiculously long, and the resulting email would be a very ugly view of the data in the form. Is there no way to simply send a snapshot of the form and send that in an email? With InfoPath, this was an extremely simple matter. Is there no PowerApps functionality to produce an email of everything on the current screen (and in the same layout) like with InfoPath?
If not, this is a massive roadblock and I can't fathom any way that we could migrate from InfoPath forms to this. What the heck is Microsoft thinking?
Hi @vshah804
Could you please reference @yashag2255 's suggestion, if it works fine, please accept it as solution.
More information:
https://www.youtube.com/watch?v=bF7WkqtxKB0
Best Regards.
Yumia
Hi @vshah804
SubmitForm(Form2);Office365.SendEmailV2("abc@xyz.com","Form Submitted","Title: "&Form2.LastSubmit.Title&"<br> Person Field:"&Form2.LastSubmit.PersonField.DisplayName&"<br> Date:"&Form2.LastSubmit.DateField)
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,004
Most Valuable Professional