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

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
    68,697 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
    68,697 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

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