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 / 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
    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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard