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
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!
 
Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard