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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Merging two or more Ar...
Power Automate
Answered

Merging two or more Array variables for a single HTML table gives unevenly saved data

(0) ShareShare
ReportReport
Posted on by 106

Hi Team,

I created a Power Automate flow, where in users are added or removed into Office365 groups, passed from a Excel table saved in SharePoint Online. In different conditions, either user added, or user already existing in the group or removed from group, I have setup append array variables at the end of each loops which saves dynamic data to its connect array variables.

In the second part, I am trying to merge all these array variables together, which basically has one column each based on user added or removed or exists find of condition with few user principal names.

Hence all my variables have single column which I need to merge together with all data saved to it. My plan is, to collect the combined data & create an HTML table to send emails.

I am successful in merging the data & placing it in table, but data is saved unevenly in the table. I am attaching the screenshots here. These are list of variables saved as in variables1.jpg.

File1.jpg will show that I used Union() function in Compose to add 3 such variables together. With Compose output I have setup a filter array to combine all columns that doesn't exist, as shows in File1.jpg. Eventually I created an HTML table as in File1.jpg.

The data for email with a style sheet returns like as it shows in tab2.jpg.

 

As you can see, the second column data shows up, after 5 rows after first row finishes. What am I missing here?

Any help will be great.

 

Thanks

Arindam

Variables1.JPG

compose.JPG

filter.JPG

table.JPG

tab2.JPG

tab2.JPG
File1.jpg
Variables1.JPG
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    You could create two separate Create HTML tables one for Active Users and one for Inactive Users and place them inside a div.

     

    <div>
    <div style='float:left'> You active user table goes here</div>
    <div> Your inactive user table goes here</div>
    </div>

     

  • AA-20080012-0 Profile Picture
    106 on at

    Hi Sudeep,

    Thanks for replying back. I tried your method, but that brings the data vertically down one column below another. Not in a a table format.

    I tried modifying a bit:

    <div class="row">
      <div class="column"></div>
      <div class="column"></div>
    </div>

     

    But same results. Its not creating tables, instead each column listing one after another.

    In my solution, I had it saved in the table, in HTML table format. But the second column starts leaving 5 rows after 1st column data finishes. Is there a way to make sure that column data starts from the top?

     

    Thanks

    Arindam

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Let me try that at my end

     

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @arindam40 

    Please check the HTML tags at your end. It works for me just fine.

    I have attached a sample.

     

  • AA-20080012-0 Profile Picture
    106 on at

    Hi Sudeep,

    Just using the HTML tag you provided, its not working. The tables get placed vertically. Not setting table at all. Any other way to force this?

    I just wanted to show you, I found another complain in the same community with same issue as mine. Might be of some help referencing.

    https://powerusers.microsoft.com/t5/Building-Flows/Power-Automate-Create-HTML-Table-rows-staggered-against-colums/td-p/2339329

     

    Thanks for all your help.

     

    Thanks

    Arindam

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @arindam40 ,

    Did you import the flow I provided?

    SudeepGhatakNZ_0-1710102610492.png

     

    Alternately, please share the HTML generated in your email. It could just be a tag causing the issue

     

  • AA-20080012-0 Profile Picture
    106 on at

    Hi Sudeep,

    Sorry, I did not realize there was an attachment. I have imported the test flow now. Let me check & revert back.

    Thank you very much.

     

    Thanks

    Arindam

  • AA-20080012-0 Profile Picture
    106 on at

    Hi Sudeep,

    Tried your solution, exactly as you mentioned. But the columns are not setting up as a table. Instead its showing up in the email one after another. Mail setup from the output, but same result.

    Attaching snapshots.

     

    Thanks

    Arindam

    Zapp1.JPG

    mail.JPG

    Zapp2.JPG

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Are you available for team's call?

     

  • AA-20080012-0 Profile Picture
    106 on at

    Yes I am here Sudeep. Do you need my email to connect?

     

    Thanks

    Arindam

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard