Skip to content
Brad Cannell edited this page Feb 15, 2023 · 4 revisions

This wiki page is about using emails as inputs and outputs to Power Automate flows.

Send an email (V2)

Add HTML to the body

Trying to embed my form as an iframe. When I left off, this website post looked sort of promising: https://powerusers.microsoft.com/t5/Building-Flows/Embed-iframe-into-Send-an-email-V2-not-working/td-p/568093

Currently, it isn't possible to embed iframes in Outlook emails. I'll just have to use a link instead.

Add a style tag to the email body like this.

<style>
  .form-link {
    text-align: center;
  }
</style>

Add buttons to an email

You can't add buttons directly, but this Stack Exchange post provides a good work around using a table and CSS.

Here is the code for my Form link button:

<style>
  .form-link {
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
  }
  
  .form-btn-td {
    border-radius: 5px;
  }
</style>

<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
      <table cellspacing="3" cellpadding="3">
        <tr>
          <td class="form-btn-td" bgcolor="#1281ee">
            <a class="form-link" href="https://forms.office.com/Pages/ResponsePage.aspx?id=JG0ye61BV0-8YInkpqxyG71AiY1PcFFApnv5JfiYoF1UOUIwUDJNUEdGSkFCVjM1WlIwQjNYN1dXTCQlQCN0PWcu" target="_blank">Check In</a>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

I also created a codepen.