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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Fix my first Outlook t...
Power Automate
Answered

Fix my first Outlook to Excel Flow

(0) ShareShare
ReportReport
Posted on by 12

Hello everyone,

I have put together my first flow, which is supposed to transfer the values Test 1 to 4 from a test mail into an Excel file.

 

I followed the following tutorial: https://www.youtube.com/watch?v=OrCs36S3w3w

 

The flow looks like this:

Silvio_Roessler_0-1701942156132.png

Silvio_Roessler_1-1701942180900.png

Expressions for Test 1-4:

first(skip(split(first(split(body('Html_to_text'),'Test 1')),': '),1))
first(skip(split(first(split(body('Html_to_text'),'Test 2')),': '),1))
first(skip(split(first(split(body('Html_to_text'),'Test 3')),': '),1))
first(skip(split(first(split(body('Html_to_text'),'Test 4')),': '),1))

My Test Mail looks like this:
Silvio_Roessler_2-1701942289163.pngSilvio_Roessler_3-1701942300724.png
 

Unfortunately, the data is always transferred incorrectly, see screenshot.

Silvio_Roessler_4-1701942332430.png


Can anyone tell me why? I'm at a beginner Level but want to get better and better the next months. So Thank you very much for your help!

Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi   

    Try this updated expression:

     

    Nived_Nambiar_0-1701965755259.png

     

    Expression:  trim(split(slice(outputs('Html_to_text')?['body'],indexOf(outputs('Html_to_text')?['body'],'Test 1'),indexOf(outputs('Html_to_text')?['body'],'Test 2')),':')?[1])
     
    Nived_Nambiar_8-1701966343046.png

     

     

    Expression:  trim(split(slice(outputs('Html_to_text')?['body'],indexOf(outputs('Html_to_text')?['body'],'Test 2'),indexOf(outputs('Html_to_text')?['body'],'Test 3')),':')?[1])

     

    Nived_Nambiar_2-1701965844278.png

     

     

    Expression:  trim(split(slice(outputs('Html_to_text')?['body'],indexOf(outputs('Html_to_text')?['body'],'Test 3'),indexOf(outputs('Html_to_text')?['body'],'Test 4')),':')?[1])

     
     
     
    Nived_Nambiar_3-1701965878625.png

    Expression:  trim(last(split(outputs('Html_to_text')?['body'],':')))

     

     

    Note: Logic for extracting test 1, test2, test3 values is by getting substring b/w Test 1 and Test 2 and then doing split for test1 values simmilar approach for other two, 

     

    for test 4, split by : and then taking last value 🙂

     

    Hope it helps

     

    see the result 

      Nived_Nambiar_4-1701965990403.png

     

    Mail body formats used for testing 

    Nived_Nambiar_5-1701966019887.png

    Nived_Nambiar_7-1701966210549.png

     

     



     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube:
    Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

     

     

  • Silvio_Roessler Profile Picture
    12 on at

    Thanks a lot for your fast answer! That worked! Now I will try to understand the code itself a bit more.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Silvio_Roessler 

     

    Kindly mark it as solution if this helps 

     

    Let me know if you have any doubts 

     

  • Silvio_Roessler Profile Picture
    12 on at

    Thank you so far for your help! I marked the answer as a solution. I would be happy if I can ask you some questions again in the future.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 780

#2
Valantis Profile Picture

Valantis 668

#3
Haque Profile Picture

Haque 601

Last 30 days Overall leaderboard