cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kedarsk
Helper I
Helper I

Send an email (V2) with dynamic content for email body from html file

Hello friends,

 

I am building the flow that automatically sends out email invitations to all my recipients for our webinar or events series.  I have the list of email ids in an excel table and everything is well connected.  In fact I tried to sent out the test email with contents and that worked well as desired.

 

Now the issue is what if I have several different events and webinars invitations formatted in a HTML file.  Here, I manually need to edit the body of the flow and then run it.

 

Is there any way that I can rather get the HTML code from the file stored on my onedrive e.g. Let's say that the invitation-A.html and invitation-B.html has the actual invitation formatted in HTML.

 

So I want to insert the html code from above mentioned files to the body field of Send an email (V2).

 

Is  the above possible?  Any help for this will be much appreciated.

 

Thank you

2 ACCEPTED SOLUTIONS

Accepted Solutions
Jcook
Super User
Super User

Hello @kedarsk 

 

Can you try:

pic1.png

 

Please note, that not all HTML code is acceptable through email.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

Jcook
Super User
Super User

@kedarsk

 

Did you have a chance to try my solution.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

5 REPLIES 5
Jcook
Super User
Super User

Hello @kedarsk 

 

Can you try:

pic1.png

 

Please note, that not all HTML code is acceptable through email.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Jcook
Super User
Super User

@kedarsk

 

Did you have a chance to try my solution.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





@Jcook  Apologies for the delayed reply.  

 

Yes, indeed the solution worked.  I also need further support from you.  Appreciate if we can connect directly.  kedarsk@hotmail.com is my email id.

 

Thank you

 

Kedar

mjfigg123
New Member

Hello there, 

 

I am also using this solution and it works well. However I would like to be able to pass a variable reference into my email. 

 

That is, I will include a "@{variables('firstname')} in my html text. However when I run the flow it does not resolve to the variable reference and assumes t is just text within the html. any idea on how to resolve this?

 

Thanks,

 

MJ

Actually just managed to solve my own issue!.. 

I used replace() to identify where I had a dynamic variable within my HTML and replace it with the desired value and then set a new variable with my html. It works great.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,072)