Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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!

  • Silvio_Roessler Profile Picture
    12 on at
    Re: Fix my first Outlook to Excel Flow

    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.

  • Nived_Nambiar Profile Picture
    17,497 Super User 2025 Season 1 on at
    Re: Fix my first Outlook to Excel Flow

    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
    Re: Fix my first Outlook to Excel Flow

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

  • Verified answer
    Nived_Nambiar Profile Picture
    17,497 Super User 2025 Season 1 on at
    Re: Fix my first Outlook to Excel Flow

    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! 🙌

     

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,594 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow