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 : NxbAvJL49qAHkEVk8sFiL5
Power Automate - Building Flows
Answered

How to convert HTML or table data from outlook email to csv file

Like (0) ShareShare
ReportReport
Posted on 20 Mar 2022 10:01:24 by

Hi Guys,

 

Need you help, i want to convert html table which i recevied in email body to CSV file or excel file , then send this csv or excel file via email as attachment. Kindly suggest. Column names would be same like HTML table. 

Vikrant_Yadav__0-1647770399711.png

 

 

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on 23 Mar 2022 at 03:52:30
    Re: How to convert HTML or table data from outlook email to csv file

    Hi @Anonymous :

    I've made a test for your reference:

    1\My email:

    vbofengmsft_0-1648007413445.png

    2\My flow:

    vbofengmsft_1-1648007511649.png

    vbofengmsft_2-1648007522734.png

    The Result:

    vbofengmsft_3-1648007543020.png

    Best Regards,

    Bof

     

     

     

  • Community Power Platform Member Profile Picture
    on 23 Mar 2022 at 14:16:49
    Re: How to convert HTML or table data from outlook email to csv file

    Hi @v-bofeng-msft  Thanks for your response. 

     

    I tried to add following expression , but getting error "The expression is invalid". Am i doing something worng ? Kindly suggest

    split(replace(replace(triggerOutputs()?['body/body'],'</span>',"),'<br>',"),'</td>')
     
    Vikrant_Yadav__0-1648044986050.png

     

  • v-bofeng-msft Profile Picture
    on 24 Mar 2022 at 01:42:31
    Re: How to convert HTML or table data from outlook email to csv file

    Hi @Anonymous :

    Cause the trigger is different.

    You can replace triggerOutputs()?['body/body'] with the specified HTML text.

    Best Regards,

    Bof

     

  • Community Power Platform Member Profile Picture
    on 25 Mar 2022 at 15:22:38
    Re: How to convert HTML or table data from outlook email to csv file

    Hi @v-bofeng-msft Thanks for the solution. 

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 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard