web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send the submitted for...
Power Apps
Unanswered

Send the submitted form content via email.

(0) ShareShare
ReportReport
Posted on by 43

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,

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @vshah804 

     

    You can directly send the email through powerapps by adding a connection for Office365 Outlook. This will get the data from the Last Submit entry through the form and send the email to email address provided in the arguments.
     
    Expression used: 
    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)
     
    Please modify the expression with the actual names as per our DataSource.MicrosoftTeams-image (177).png

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • v-yuxima-msft Profile Picture
    on at

    Hi @vshah804 

     

    Could you please reference @yashag2255 's suggestion, if it works fine, please accept it as solution.

     

    More information:

    https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Submit-form-and-send-email-with-same-button/td-p/190301

    https://www.youtube.com/watch?v=bF7WkqtxKB0

     

    Best Regards.

    Yumia

  • Matt_C1 Profile Picture
    45 on at

    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?

  • Community Power Platform Member Profile Picture
    on at

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

  • CRoto Profile Picture
    3 on at

    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.

  • Rozza88 Profile Picture
    2 on at

    Hi, if the person field here is a people picker that allows multiple selections, how would I add this as above please?

  • naro_rijal Profile Picture
    12 on at

    Hi @yashag2255 , How if I want add CC and BCC?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard