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 / Create entries between...
Power Automate
Unanswered

Create entries between two dates

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a resource planning solution and I'm now trying to build a functionality that allows the user to setup a workschedule to a user.

 

Through the Power App the user will select the days of the work he works (Monday, tuesday, wednesday, thursday or friday) and setup start and end time per day. This will feed a entry on a dataverse table with the correspondent structure:

 

Miguel_Pst_0-1715348769364.png

Now I want to build a flow that when a entry is added on this list will be triggered and create entries on the activities table to setup the availability of the user. 

 

So for example in this case I want the flow to create a entry for every monday between 13/05 and 25/07 on the activities table with start time 8:00 and end time 17:00. This is the way we are managing availability for other cases already and all the activity types.

 

Miguel_Pst_1-1715348898437.png

 

Any idea how can I get like a list of every monday, tuesday, etc. between 2 dates on power automate to start?

 

Best,

Miguel

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,280 Most Valuable Professional on at

    @Miguel_Pst 

    You might consider using a Do Until loop and 2 variables.  Store the start date in one of the variables.  Make the second variable a boolean and set it to false.

    You will loop until the boolean variable is true

    In the loop, evaluate the start date using a dayOfWeek expression.  

    Add they date to an array or take some other action if it one of the days in which you are interested.

    Then add 1 day to the date 

    If the result is after the end date, set the variable to true.

     

    If this doesn't make sense, let me know and I'll create an example.

     

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard