web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Error message

(0) ShareShare
ReportReport
Posted on by
Hello, I'm trying to extract an HTML table headers and rows from an email to populate an excel file containing a table with 12 headers.  When I test part of the flow I received an error message: "Unable to process template language expressions in action 'ComposeHTML' inputs at line '0' and column '0': 'The template language function 'replace' expects three string parameters: the string to replace characters inside of as the first parameter, the string that will be replaced by the new string as the second parameter, and the new string as the third parameter. The function was invoked with '2' parameter(s). Please see https://aka.ms/logicexpressions#replace for usage details."
 
The expressions that I used so far is listed below:
1) substring(triggerOutputs()?['body/body'],indexof(triggerOutputs()?['body/body'],'<table'))
2) substring(outputs('ComposeStartOfTable'),0,indexof(outputs('ComposeStartOfTable'),'</table>'))
3){outputs('ComposeEndOfTable')}</table>
4) xml(replace(outputs('ComposeAddClosingTableTag'),'</colgroup>’,’</col></colgroup>'))
 
If this isn't the correct way to create an power automate, can you provide me the correct flow to use.
 
Thank you!
 
I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Error message
    Hi,
     
    You may try the steps mentioned in my blog for extracting data from html table in an email:
     
     
    If this helps & solves your problem, please remember to like and accept my solution as it will help others in the future.
     
    Thanks,
    YouTube Channel: Manish Solanki - YouTube
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard