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 / Inserting external ema...
Power Automate
Unanswered

Inserting external email body content when composing email

(0) ShareShare
ReportReport
Posted on by 4

Hi guys,

 

I am setting up an automatic email from a shared inbox. Due to company security policy, I cannot share the flow with any of my team members (who could then theoretically change the 'send as' field), but I would like them to be able to edit the body of the message. I had thought a way around this could be to pull into the flow a file (probably html, but i'm open to alternatives if they work). This file would be saved on Sharepoint so that my team could edit the content and formatting. The flow would reference this content in the message body of the automatic email.

I could do it writing the email body in excel, or a Sharepoint list, but then there would be no formatting, and is not really practical. Everything I have found online seems to ultimately end in copy and pasting the html into the flow, rather than referencing it from somewhere else. Am I missing something really obvious?

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,073 on at

    Hi @fionamacdonald,

    what's your exact problem? Email content is just a HTML text. You can read it from any source and place to the email body.

     

  • fionamacdonald Profile Picture
    4 on at

    Sounds like I'm missing something obvious then, which is good news. How do I read in the html? What action is it?

  • VictorIvanidze Profile Picture
    13,073 on at

    It depends on the place where you store the HTML text. From where you wish to retrieve it?

  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @fionamacdonald 

    You can achieve what you are looking for without premium connectors by using an HTML file. HTML files can be opened and edited in the Word Desktop app.

     

    I used a Get file content using path action. In the Send an email (V2) action, I inserted the content returned from that file.

    creativeopinion_0-1692115568808.png

     

    The file is saved on SP. You'd need to get the users to Sync the folder where the file is saved so they can make edits in the Word Desktop app. You can't open the html file on SharePoint in the Word web app.

    creativeopinion_1-1692115624356.png

     

    I customized a few styles in the document and applied them to the content.

    creativeopinion_2-1692115821140.png

     

    This is what the email looks like.

    creativeopinion_3-1692115969426.png

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

     

     

     

     

     

  • fsuarezoedt Profile Picture
    46 on at

    Hi!

     

    Is there a way to add fields to the HTML and be used in the email? For example using a template:

    <!DOCTYPE html>
    <html>
     <head>
     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     <title>HTML Test</title>
     </head>
     <body>
     <p>HTML test with fields.</p>
     <p>Here PA should replace the @blabla with the content of the variable:</p>
     <p>@{variables('Variable1')}</p>
     <p><br>
     </p>
     </body>
    </html>

    Then using a variable called Variable1 should replace the content of the HTML.

    fsuarezoedt_0-1713431406108.png

     

    Regards,

  • VictorIvanidze Profile Picture
    13,073 on at

    Just place this HTML code to the Compose action. That's all.

  • fsuarezoedt Profile Picture
    46 on at

    Thanks for your quick answer!

     

    Do you mean something like this?

    fsuarezoedt_0-1713432934816.png

    Using that I got this:

    fsuarezoedt_1-1713432964325.png

    So, no variable replace at all.

  • VictorIvanidze Profile Picture
    13,073 on at

    In the "Send an email notification (V3)" you forget to switch to HTML mode. Click </> to do that.

  • fsuarezoedt Profile Picture
    46 on at

    Tried like this:

     

    fsuarezoedt_0-1713435196242.png

     

    but the output is still verbatim. No field is replaced by the value

  • VictorIvanidze Profile Picture
    13,073 on at

    Here is my flow that works prorperly:

    VictorIvanidze_1-1713435950680.png

     

     

     

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard