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 / Passing 2 date paramet...
Power Automate
Unanswered

Passing 2 date parameters in Export to files for paginated report

(1) ShareShare
ReportReport
Posted on by 144

Hi guys, 

 

I created a flow to export excel file on OneDrive and send the exported file as attachment like this: 

 

tracytran_0-1631936707524.png

 

It worked well when my paginated report does not have any parameter. However, now I have 2 parameters as follows: 

 

tracytran_1-1631936841593.png

 

How could I pass the StartDate and EndDate parameter in Export files for paginated report?? 

 

tracytran_2-1631936916207.png

 

What I want is to export the data LAST MONTH. For example: this month is Sep, I would like to get raw data in Aug. 

 

Could anyone please help me regarding this problem?

 

Any help is highly appreciated. 

 

Categories:
  • nich3play3r Profile Picture
    257 on at

    Could you create variables in the flow to hold the start date and end date of the prior month and then use those values in your ParameterValues Value fields? Then, no matter when the flow ran, it would return report data from the prior month based on your variable values.

  • Luke G Profile Picture
    on at

    I'm trying to do something very similar. I can figure out how to get the previous month, but not how to format the date the way the parameter wants to receive it!

    1st day of previous month: startOfMonth(addDays(startOfMonth(utcNow('mm/dd/yyyy')),-1)

    1st day of current month: startOfMonth(utcNow('mm/dd/yyyy')) (you could also do startof month -1 day to get last day of previous month)

  • PaddyWann Profile Picture
    101 on at

    same here. I had to make the field text in order to pass a parameter. I'm sure there's a formatting method in the report maker that can be done to make a format users can use. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard