Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Export multiple rows from email to excel

(2) ShareShare
ReportReport
Posted on by

Hello,

 

I'm trying to develop the below workflow in power automate.

Every X minutes i receive an email from a distribution list XXXXXX@XXXXX.COM and the email body is like below.

Every time the first line is about the Date/Time it concerns and following are some information about affected customers per technology.

 

Period: 2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.000177

CO/Cabin/PON: 10.112.101.46 atm 1 - accessTech: ADSL - Users: 51 - DisconnectingUsers: 51 - Percentage: 100%

CO/Cabin/PON: 10.112.101.46 atm 2 - accessTech: ADSL - Users: 50 - DisconnectingUsers: 50 - Percentage: 100%

CO/Cabin/PON: 10.112.101.46 atm 3 - accessTech: ADSL - Users: 46 - DisconnectingUsers: 44 - Percentage: 95%

CO/Cabin/PON: 10.112.101.46 atm 4 - accessTech: ADSL - Users: 45 - DisconnectingUsers: 42 - Percentage: 93%

CO/Cabin/PON: 10.112.101.46 atm 5 - accessTech: ADSL - Users: 35 - DisconnectingUsers: 35 - Percentage: 100%

CO/Cabin/PON: 10.112.101.46 atm 7 - accessTech: ADSL - Users: 32 - DisconnectingUsers: 32 - Percentage: 100%

CO/Cabin/PON: KOZAN_KOZANI_D_ALC_27052_KV - accessTech: FTTC - Users: 13 - DisconnectingUsers: 13 - Percentage: 100%

CO/Cabin/PON: LARIS_METAMORFOSI_D_ALC_22559_KV - accessTech: FTTC - Users: 6 - DisconnectingUsers: 5 - Percentage: 83%

 

Those data i want to extract in a table of a shared excel file.

As you may see i create new line for every blue row, and i use the same period for every row

Period:CO/Cabin/PON:accessTech:Users: DisconnectingUsers:Percentage:
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.00017710.112.101.46 atm 1ADSL5151100%
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.00017710.112.101.46 atm 2ADSL5050100%
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.00017710.112.101.46 atm 3ADSL464495%
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.00017710.112.101.46 atm 4ADSL454293%
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.00017710.112.101.46 atm 5ADSL3535100%
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.00017710.112.101.46 atm 7ADSL3232100%
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.000177KOZAN_KOZANI_D_ALC_27052_KVFTTC1313100%
2024-07-11T07:30:00.000177 - 2024-07-11T07:45:00.000177LARIS_METAMORFOSI_D_ALC_22559_KVFTTC6583%

 

What i've done so far:

Created and HTML to text every time i receive those emails.

 

matthaios_0-1720689308074.png

 

Split

matthaios_1-1720689352304.png

Split(body('Html_to_text'),outputs('EnterKey'))
 
Capture Date/Time
matthaios_2-1720689387021.png
last(split(outputs('Body_to_Text')[0],': '))
 
Trim
matthaios_3-1720689427074.png

 

trim(Split(Split(outputs('Body_to_Text'),'Period:')?[1],'CO/Cabin/PON:')?[0])
Here i get an error: matthaios_8-1720689682682.png

 

 

matthaios_4-1720689449978.png

split(trim(Split(outputs('Body_to_Text'),'CO/Cabin/PON:')?[1]),decodeUriComponent('%0A'))
 
 Apply to each Compose matthaios_6-1720689503139.png

 

matthaios_5-1720689481582.png

 

 

items('Apply_to_each')
 
matthaios_7-1720689533909.png

 

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >