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

Notifications

Announcements

Community site session details

Community site session details

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

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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard