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 Automate / Generating HTML Email ...
Power Automate
Suggested Answer

Generating HTML Email Drafts from Excel Inputs (Saved to Drafts Only)

(1) ShareShare
ReportReport
Posted on by 2

I would like to create an email draft in Outlook using values entered into an Excel file stored in Teams.
Ideally, the email should be sent from a group address.

The email should be formatted in HTML, and I do not want it to be sent automatically.
I would prefer to have it saved as a draft instead.

Categories:
I have the same question (0)
  • David_MA Profile Picture
    13,282 Super User 2025 Season 2 on at
    Set your flow up like this and be sure to use a filter query to return the row you need from Excel to populate the e-mail with or you will generate as many e-mails as there are rows in the spreadsheet (well, up to 256 if you don't enabled paging).
    Just note that the e-mail will be saved in the draft folder of the owner of the flow.
     
  • Suggested answer
    Jon Unzueta Profile Picture
    1,834 Super User 2025 Season 2 on at
     

    1. Trigger

    Start with a manual trigger or scheduled flow depending on your needs.

    2. Read Excel from Teams

    • Use “List rows present in a table” from the Excel Online (Business) connector.
    • Make sure the Excel file is stored in a Teams-connected SharePoint site.
    • Ensure the data is in a table format.

    3. Build HTML Email Body

    Use a Compose action to format the email body using dynamic content from Excel:

    Hello,

    Here is the summary:

    • Name: @{items('Apply_to_each')?['Name']}
    • Project: @{items('Apply_to_each')?['Project']}

    4. Create Draft Email via Microsoft Graph API

    Use the HTTP action (premium connector) to call Graph API:


    Endpoint:

    POST https://graph.microsoft.com/v1.0/users/{group_email}/messages
    • Headers:

    {

      "Authorization": "Bearer YOUR_ACCESS_TOKEN",

      "Content-Type": "application/json"

    }

    Body

    {

      "subject": "Project Summary",

      "body": {

        "contentType": "HTML",

        "content": "

    Your formatted HTML content here

    "

      },

      "toRecipients": [

        {

          "emailAddress": {

            "address": "recipient@example.com"

     

          }

        }

      ],

      "saveToSentItems": "false"

    }

    This will create a draft email in the group mailbox.
     
    This content may have been partially translated, structured, or generated with Copilot 🏷️ Tag me if you have any further questions or if the issue persists. ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems. ❤️ Give it a Like if you found the approach useful in any way.

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 Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
trice602 Profile Picture

trice602 230 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 187 Most Valuable Professional

Last 30 days Overall leaderboard