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 / text to excel with Com...
Power Automate
Unanswered

text to excel with Compose: Run trough file per 5 items: sometimes one item consists of two lines

(0) ShareShare
ReportReport
Posted on by 51

Hi,

 

I have text as an ouput from a 'HTMLtoText' conversion (input for that is an e-mail body) . I'm having trouble to create Compose actions that run trough this output and create a row in excel.  So each 5 items in the .txt output need to be one row in excel.

Sometimes the third item consists of 2 lines as shown in 2nd screenshot.

 

Maybe there is a better approach to solve this?

 

driekes_0-1606148653751.png

 

driekes_1-1606149690307.png

 

 

 

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @driekes,

     

    Could you please share a screenshot of your Flow configuration?

    It's recommended that using initialize a variable action instead of Compose action if you are using Apply to each action, cause the output of Compose action would be an array.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • driekes Profile Picture
    51 on at

    Hi @v-litu-msft,

    Thanks for your reply.

     

    I convert the body of an e-mail to text. Then I clean out some data with a few Compose actions. (I can combine those, but I can do that later.) The screenshot of the textfile in the initial post is the ouput from the last Compose actions.

    From there I don't really have an idea how to continue.

     

     

     

    driekes_0-1606215890751.png

     

  • driekes Profile Picture
    51 on at

    Hi @v-litu-msft 

     

    So instead of compose actions I used Initialise Variable action. The result is the same textfile as in screenshot in OP.

    From there I'm still struggeling to run trough this file and get the data in a table in excel.

     

    Any hint will be much appreciated.

     

    Variable instead of composeVariable instead of compose

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 190

Last 30 days Overall leaderboard