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 / Power Apps Collection ...
Power Automate
Answered

Power Apps Collection equivalent in Power Automate

(0) ShareShare
ReportReport
Posted on by 19

Hi,

Where in PowerApps we can build collections to then use values from there within the app, how can we build collections in Power Automate and how do we call upon the values?

 

e.g. I have this collection in an app. I want to convert this to Power Automate.

 

ForAll(
 Sequence(30,1),
 Collect(
 colDateRange,
 {
 RowIndex: CountRows(colDateRange) + 1,
 Date: DateAdd(Today(), Value)
 }
 )
);
//Remove Weekends from the calculated collection
RemoveIf(
 colDateRange,
 Weekday(Date) = 1 || Weekday(Date) = 7
 ) > 0
);
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    The equivalent of a collection in Power Automate is a JSON array.  Create it by creating an array variable and then appending JSON formatted records to the array.  You can then access the records and the values in the records using an Apply to Each loop.  To create the array you want use a Do Until loop and a counter to create the Rows.  Using a condition inside the loop will let you ignore weekend days.

  • TheGame Profile Picture
    19 on at

    Thank you for your quick response, however everything just went well over my head. The only part I understood is the part i have to initialize an array variable. 

  • Verified answer
    Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    image.png

    image.png

    image.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

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
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard