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 / Iteration through the ...
Power Automate
Answered

Iteration through the union

(0) ShareShare
ReportReport
Posted on by 10
Hi guys, I haven't been able to solve this problem for a long time.
I extract unique numbers from the excel file with the union and I want to iterate through it.
But the length of my union is always 1 (instead of 4 as it should be in the example)
Example:

 Screenshot_4.png

Result:

Screenshot_2.png

Screenshot_3.png

Why is the array length not 4?
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,872 Most Valuable Professional on at

    Hi @5ar94,

     

    In your last screenshot it looks like your array value has two [[ characters and ]] instead of just one [ and ]. So, it is kind of a nested array.

     

    You could use this expression:

    length(variables('ArrayNumber')[0])

     

    Or alternatively remove the extra [] from your value.

  • 5ar94 Profile Picture
    10 on at

     

    Thank you so much bro! length(variables('ArrayNumber')[0]) solved the problem.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 822

#3
Haque Profile Picture

Haque 482

Last 30 days Overall leaderboard