cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

can we format html using javascript in power automate

Hi All,

 

I have written a flow to send mail.

I have created HTML Table and I want the background color  to change based on the content of the cell.

Example:

If value=Red -> background color should be Red

If value=Green ->background color should be Green 

I have written java script for this using compose action

 

But this is not reflected in mails.

 

Your help on this will be highly appreciated

 

Thanks in advance

1 REPLY 1
Highlighted
Dual Super User III
Dual Super User III

Re: can we format html using javascript in power automate

Hi @Suma27 

 

You cannot use javascript for styling in email actions. You can use the style tags though. You can check out this post for more on styling a table for email in Power Automate: https://ryanmaclean365.com/2020/01/29/power-automate-html-table-styling/ 

 

Hope this Helps!

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!

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Users online (4,741)