SOLVED

Teams approvals - Use HTML table in the approval creation

%3CLINGO-SUB%20id%3D%22lingo-sub-2566520%22%20slang%3D%22en-US%22%3ETeams%20approvals%20-%20Use%20HTML%20table%20in%20the%20approval%20creation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2566520%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20creating%20an%20Approval%20for%20Teams%20in%20Power%20Automate%20called%20from%20Power%20Apps.%26nbsp%3B%20In%20Power%20Apps%2C%20I%20dynamically%20create%20a%20table%20using%20HTML%20with%20a%20header%20and%20data%20rows%20from%20SharePoint%20list%20data%20(could%20be%20from%20any%20data%20source)%2C%20and%20I%20use%20it%20to%20send%20an%20email.%26nbsp%3B%20Works%20great.%5C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20I%20want%20to%20use%20that%20same%20HTML%20string%20and%20pass%20it%20to%20Power%20Automate%20to%20create%20a%20Teams%20approval.%26nbsp%3B%20I%20assumed%20I%20could%20pass%20it%20as%20a%20string%20parameter%20as%20I%20do%20when%20I%20use%20a%20flow%20to%20create%20the%20email%20(actually%20send%20it%20as%20a%20fully%20completed%20email%20body)%2C%20but%20I%20m%20not%20certain%20how%20to%20use%20it%20in%20the%20create%20approval%20action.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20testing%20manually%20and%20just%20used%20some%20simple%20HTML%20(%3C%2FP%3E%3CH2%20id%3D%22toc-hId--408721328%22%20id%3D%22toc-hId--408721328%22%20id%3D%22toc-hId--408721360%22%3EText%3C%2FH2%3E)%20but%20I%20get%20those%20as%20text%20values%2C%20not%20HTML%20commands.%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20click%20on%20the%20approval%20I%20created%2C%20I%20notice%20%22Comments%22%20at%20the%20bottom%20of%20the%20card%20that%20appears.%26nbsp%3B%20Ideally%20this%20is%20where%20I%20would%20like%20to%20place%20the%20table%2C%20along%20with%20some%20other%20dynamic%20data%20I%20get%20in%20Power%20Apps.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20rate%20my%20expertise%20with%20Power%20Apps%20and%20Automate%20rather%20advanced%2C%20but%20just%20recently%20starting%20playing%20with%20Teams%20other%20than%20using%20it%20for%20meetings%2C%20so%20I%20may%20be%20short%20on%20what%20I%20need%20to%20know%20in%20Teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20someone%20can%20help%20me%20advance%20my%20expertise%20on%20this%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2566520%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2579481%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20approvals%20-%20Use%20HTML%20table%20in%20the%20approval%20creation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2579481%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F93569%22%20target%3D%22_blank%22%3E%40Larry%20Heimendinger%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20follow%20%3CA%20href%3D%22https%3A%2F%2Fnishantrana.me%2F2020%2F08%2F31%2Fuse-markdown-to-format-approval-emails-power-automate-and-dynamics-365%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E%20blog%20and%20%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DohSyBtu-QYY%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Evideo%3C%2FA%3E%20to%20format%20approval%20emails.%3CBR%20%2F%3EAlso%20refer%20this%20link%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fapprovals-markdown-support%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUse%20markdown%20to%20format%20Power%20Automate%20approvals%20-%20Power%20Automate%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3EHope%20this%20helps%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am creating an Approval for Teams in Power Automate called from Power Apps.  In Power Apps, I dynamically create a table using HTML with a header and data rows from SharePoint list data (could be from any data source), and I use it to send an email.  Works great.\

 

Now I want to use that same HTML string and pass it to Power Automate to create a Teams approval.  I assumed I could pass it as a string parameter as I do when I use a flow to create the email (actually send it as a fully completed email body), but I m not certain how to use it in the create approval action.

 

I am testing manually and just used some simple HTML (<H2>Text</H2>) but I get those as text values, not HTML commands.

 

When I click on the approval I created, I notice "Comments" at the bottom of the card that appears.  Ideally this is where I would like to place the table, along with some other dynamic data I get in Power Apps.  

 

I would rate my expertise with Power Apps and Automate rather advanced, but just recently starting playing with Teams other than using it for meetings, so I may be short on what I need to know in Teams.

 

Hope someone can help me advance my expertise on this problem.

2 Replies
best response confirmed by Larry Heimendinger (Occasional Contributor)
Solution

@Larry Heimendinger 

You can follow this blog and video to format approval emails.
Also refer this link: Use markdown to format Power Automate approvals - Power Automate | Microsoft Docs
Hope this helps !

Thanks for the references. Not only did I learn that HTML itself is not supported but also that Teams Approval does not support even the alternative text formatting syntax. Bummer..
But thanks indeed.