Emails for Power Apps
Each of these is a small card with a Send button that sends one branded HTML e-mail straight from your app, through the Office 365 Outlook connector and without a flow. Reach for them when a person in the app should tell someone something right now: ask for approval, answer a ticket, send a report. The mail is made from your data in the button's formula, and the preview on each component page shows the mail as the recipient gets it.
Pick a variant
- Send Email CardPaidClassic, Modern
Sending a branded HTML e-mail straight from the app, without a flow
Settings: Style, Mail layout (note, note with a button, summary table), App name, Button text and link, Rows, Footer, card Title, Help line and Button text, starting To, Subject and Message, parts
- Approval Request EmailPaidClassic, Modern
Asking for approval by e-mail, with Approve and Reject buttons that open the app on the record
Settings: Style, App name, Subject, Heading, First line, Rows (label and value, up to 8), Link to your app, Record ID, Approve and Reject button texts, Line under the buttons, Footer, card Title, Help line and Button text, starting Approver and Note, parts
- Decision EmailPaidClassic, Modern
Telling the requester what was decided, in green or red, with the comment
Settings: Style, App name, Request, Link to your app, Record ID, Button text, Footer, card Title, Help line, Approve and Reject button texts, starting Requester and Comment, parts
- Line Items EmailPaidClassic, Modern
An expense report, order or timesheet by e-mail: one line per record and a total
Settings: Style, App name, Subject, Currency, Total label, Sender line, Lines (item and amount, up to 8), Link to your app, Button text, Footer, card Title, Help line and Button text, starting To, parts
- Digest EmailPaidClassic, Modern
Open tasks or tickets as one e-mail, each line colored by its due date
Settings: Style, App name, Subject, Tasks (task and due in days, up to 8), Link to your app, Button text, Footer, card Title, Help line and Button text, starting To, parts
- Ticket Update EmailPaidClassic, Modern
Answering a helpdesk ticket by e-mail, with buttons back into the app
Settings: Style, App name, Ticket title, number and status, Link to your app, Record ID, First and Second button texts, Footer, card Title, Help line and Button text, starting Requester and Answer, parts
- Reminder EmailPaidClassic, Modern
An inspection, booking or return that is coming up, with the date as a calendar leaf
Settings: Style, App name, Subject, Due in days, Detail, Message, Link to your app, Record ID, First and Second button texts, Footer, card Title, Help line and Button text, starting To, parts
- Report Email with PhotoPaidClassic, Modern
The result of an inspection or handover with ticks and crosses and a photo attached
Settings: Style, App name, Subject, What was checked, Checked, Passed and Attachment lines, Points (point, result and passed, up to 8), Footer, card Title, Help line, Button text, Photo label and hint, starting To, parts
- Welcome EmailPaidClassic, Modern
The first steps for someone who was just added to an app or a team
Settings: Style, App name, Subject, Heading, First and Last line, Steps (step and detail, up to 8), Link to your app, Button text, Footer, card Title, Help line and Button text, starting New person and First name, parts
| Component | Plan | YAML | What it is for | Settings you can change |
|---|---|---|---|---|
| Send Email Card | Paid | Classic, Modern | Sending a branded HTML e-mail straight from the app, without a flow | Style, Mail layout (note, note with a button, summary table), App name, Button text and link, Rows, Footer, card Title, Help line and Button text, starting To, Subject and Message, parts |
| Approval Request Email | Paid | Classic, Modern | Asking for approval by e-mail, with Approve and Reject buttons that open the app on the record | Style, App name, Subject, Heading, First line, Rows (label and value, up to 8), Link to your app, Record ID, Approve and Reject button texts, Line under the buttons, Footer, card Title, Help line and Button text, starting Approver and Note, parts |
| Decision Email | Paid | Classic, Modern | Telling the requester what was decided, in green or red, with the comment | Style, App name, Request, Link to your app, Record ID, Button text, Footer, card Title, Help line, Approve and Reject button texts, starting Requester and Comment, parts |
| Line Items Email | Paid | Classic, Modern | An expense report, order or timesheet by e-mail: one line per record and a total | Style, App name, Subject, Currency, Total label, Sender line, Lines (item and amount, up to 8), Link to your app, Button text, Footer, card Title, Help line and Button text, starting To, parts |
| Digest Email | Paid | Classic, Modern | Open tasks or tickets as one e-mail, each line colored by its due date | Style, App name, Subject, Tasks (task and due in days, up to 8), Link to your app, Button text, Footer, card Title, Help line and Button text, starting To, parts |
| Ticket Update Email | Paid | Classic, Modern | Answering a helpdesk ticket by e-mail, with buttons back into the app | Style, App name, Ticket title, number and status, Link to your app, Record ID, First and Second button texts, Footer, card Title, Help line and Button text, starting Requester and Answer, parts |
| Reminder Email | Paid | Classic, Modern | An inspection, booking or return that is coming up, with the date as a calendar leaf | Style, App name, Subject, Due in days, Detail, Message, Link to your app, Record ID, First and Second button texts, Footer, card Title, Help line and Button text, starting To, parts |
| Report Email with Photo | Paid | Classic, Modern | The result of an inspection or handover with ticks and crosses and a photo attached | Style, App name, Subject, What was checked, Checked, Passed and Attachment lines, Points (point, result and passed, up to 8), Footer, card Title, Help line, Button text, Photo label and hint, starting To, parts |
| Welcome Email | Paid | Classic, Modern | The first steps for someone who was just added to an app or a team | Style, App name, Subject, Heading, First and Last line, Steps (step and detail, up to 8), Link to your app, Button text, Footer, card Title, Help line and Button text, starting New person and First name, parts |
Paid means any paid plan (which plan do I need?). Classic and Modern are the two Power Apps control sets you can pick from the Copy YAML button. Open the category in the library: Emails.
To copy a variant into Power Apps Studio, follow Getting Started.
After you paste
The button calls Office365Outlook.SendEmailV2, so the app needs the connector once. In Power Apps Studio open Data, choose Add data, search for Office 365 Outlook and add it. Until then the button shows a formula error. That is expected and goes away with the connector.
Everything you swap for your own data stands at the top of the button's formula, between With( and IfError(. The HTML below reads those names, so you do not have to touch it. This is the top of the Approval Request Email with a record's columns in place of the sample values:
With(
{
mailTo: ThisItem.Approver.Email,
mailSubject: "Approval needed: " & ThisItem.Title,
appLink: "https://apps.powerapps.com/play/your-app-id",
recordId: Text(ThisItem.ID),
requestRows: Table(
{ Label: "Request", Value: ThisItem.Title },
{ Label: "Amount", Value: Text(ThisItem.Amount, "#,##0.00") }
)
},
IfError( ... )
)
Mails with a list (Line Items, Digest, Report, Welcome) read a table by its column names. Swap the sample table for a collection, a gallery or a filter, and rename your columns on the way in if they are called differently:
lineItems: RenameColumns(Filter(Expenses, ReportID = ThisItem.ID), Title, Item, Cost, Amount)
Buttons in a mail open your app with the record's ID in the address. Read it where the app starts, in the StartScreen property of App, and look the record up on that screen:
If(!IsBlank(Param("RequestID")), scrDecide, scrHome)
LookUp(Requests, ID = Value(Param("RequestID")))
Good to know
- The mail leaves from the mailbox of the person who uses the app and shows up in their Sent folder. For a shared mailbox use
Office365Outlook.SharedMailboxSendEmailV2with the mailbox address as the first argument. - A failed send does not pass silently. The formula is wrapped in
IfError, and the line under the button says that the mail was not sent. - Every mail comes in four looks, picked under Style in Customize: Bar (a thin bar in your color), Banner (a full header in your color), Plain (a black button, your color only as a dot) and Soft (a tinted page with rounded corners). The formula you copy carries the look. Outlook on Windows draws the rounded corners of Soft square.
- The whole mail is tables with styles written on each element. That is on purpose: Outlook draws mail with the engine of Word and ignores flexbox, grid and style sheets. Change colors and sizes in the formula, but keep the tables.
- Dates and amounts are written in English for every user. That is the
"en-US"at the end of eachText(...). For German month names and1.240,00change it to"de-DE"and leave the format in front of it as it is. - The buttons open the app, they do not decide or change anything from the mail itself.
- These mails go out when someone presses the button. For mail that has to leave when nobody has the app open, such as a nightly digest or a reminder two days before a date, a scheduled flow is the right tool. The HTML of the mail works there too.