Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7w2ed4AvYY6XHOhjv3ZR8L
Power Apps - Building Power Apps
Answered

Send the submitted form content via email.

Like (0) ShareShare
ReportReport
Posted on 15 Jul 2019 14:50:49 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:
  • naro_rijal Profile Picture
    12 on 24 Aug 2023 at 10:32:47
    Re: Send the submitted form content via email.

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

  • Rozza88 Profile Picture
    2 on 16 Aug 2023 at 18:29:06
    Re: Send the submitted form content via email.

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

  • CRoto Profile Picture
    3 on 01 Jun 2023 at 14:12:55
    Re: Send the submitted form content via email.

    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.

  • Community Power Platform Member Profile Picture
    on 20 Oct 2022 at 08:34:14
    Re: Send the submitted form content via email.

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

  • Matt_C1 Profile Picture
    45 on 14 Jul 2021 at 15:48:24
    Re: Send the submitted form content via email.

    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?

  • v-yuxima-msft Profile Picture
    on 16 Jul 2019 at 07:39:13
    Re: Send the submitted form content via email.

    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

  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on 15 Jul 2019 at 18:05:35
    Re: Send the submitted form content via email.

    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!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started