cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

HTML EMAILS: Centralized Templating?

Hello,

 

Is there a way to reference a single HTML file somewhere instead of copying/pasting giant HTML text between Flows?

 

Example

- Flow in Production Environment

- Has an HTML email that is ~300 lines long

- Dynamic content embedded throughout

- Similar Flow in Development Environment

- Dynamic content (slightly different Actions and/or Sequences) embedded throughout

- Has the same HTML email that is ~300 lines long

 

Instead of having to copy and paste ~300 lines of HTML between the Environments and rewrite the dynamic content, I want some way to host the HTML email somewhere smart and reference it.

 

I'm finding it quite challenging to be consistent and to reuse content efficiently. 


Does anyone else have a better model for this? 

 

Thanks!

5 REPLIES 5
Super User
Super User

Re: HTML EMAILS: Centralized Templating?

Hi @ericonline ,

 

You can build a compose message and pass the output to send email body.

 

Please have a look at below blog.

 

http://johnliu.net/blog/2017/11/sending-custom-actionable-messages-via-flow

 

So in your case you probably need to store this json file in a One drive or flow supported database.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Community Support Team
Community Support Team

Re: HTML EMAILS: Centralized Templating?

Hi @ericonline ,

 

I am afraid I didn't understand what you mean. Do you want to reuse html emails or Html file?

Please provide more details about your needs.

It seems that you could try to store html file/HTML Emails that needs multiple references in a common place, such as SharePoint Library or OneDrive.

When you need to reference this file in different environments, you could directly reference the file content through the file path.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: HTML EMAILS: Centralized Templating?

Hi @ericonline ,

 

How you progressing with this one? 

 

Let me know how it goes.

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Super User
Super User

Re: HTML EMAILS: Centralized Templating?

Hi @abm ,

 

I think what I want isn't possible. Basically looking from some way to keep my HTML Email Templates in a central location and reference them in different Flows. 

 

Something akin to an "includes reference" or "transclusion". Not sure its possible. 

 

Thanks for the followup. That John Liu blog was neat.

Super User
Super User

Re: HTML EMAILS: Centralized Templating?

Hi @ericonline ,

 

Why not create your email templates and upload in a SharePoint list for example and attach a meta data to identify whether its dev or live. Use the SharePoint flow step to get the relevant template before send the email and map it to your email body. 

 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks

 



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,114)