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 / Passing dynamic parame...
Power Automate
Unanswered

Passing dynamic parameters while exporting file from Paginated report

(0) ShareShare
ReportReport
Posted on by 8

I am building a flow to export pdf from paginated report that has 6 Parameters. I have successfully built a logic using Power BI dataset to help me get these parameter values but i am struggling to pass them to the 'Export to file for Paginated report' action. 

a9kita_0-1715934374004.png

I get 4 unique rows from the power bi dataset, with 6 columns, which means i want 4 pdf files to be exported with the parameters coming from those 6 columns .
Here is the schema of Parse Json step: 

 

{
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "RefreshParameters[P1]": {
 "type": "string"
 },
 "RefreshParameters[P2]": {
 "type": "string"
 },
 "RefreshParameters[P3]": {
 "type": "string"
 },
 "RefreshParameters[P4]": {
 "type": "string"
 },
 "RefreshParameters[P5]": {
 "type": "string"
 },
 "RefreshParameters[P6]": {
 "type": "string"
 }
 },
 "required": [
 "RefreshParameters[P1]",
 "RefreshParameters[P2]",
 "RefreshParameters[P3]",
 "RefreshParameters[P4]",
 "RefreshParameters[P5]",
 "RefreshParameters[P6]"
 ]
 }
}

 

 Looping though this array to give single values for my parameters to export action is quite a task. And Power automate is adding in many additional loops. 

a9kita_1-1715935817620.png

What would be the best way to get parameter values of 6 fields from the output of power bi dataset.
@ManishSolanki @Expiscornovus @creativeopinion 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @a9kita 

     

    How will you pass the result of array in paginated report as parameter? Pls give an example with input array & output required for parameters. The reason for asking is I am a beginner in Power BI 😀

     

     

  • a9kita Profile Picture
    8 on at

    I was expecting this question. Here's my Power BI table, each row represents the parameters I need for 1 file, 4 rows= 4 files. 
    a9kita_0-1715949317598.png

    when i parse it as Json, here's my format:

     

    [
     {
     "[Entity]": "XYZ",
     "[RunType]": "Ad-hoc",
     "[ProcessRunDate]": "05-16-2024 (06:13 AM ET)",
     "[Reporting Date]": "2024-04-30T00:00:00
     },
     {
     "[Entity]": "UVW",
     "[Run Type]": "Ad-hoc",
     "[Process Run Date]": "05-16-2024 (06:13 AM ET)",
    "and so on"
    }
    ]
    

     


    The 'file export' Action is supposed be in a loop, to iterate through each of the 4 rows. And the parameter fields are passed in the form of name - value pairs.
    Here is an example when I pass the values manually
    a9kita_1-1715951032885.png

    on checking the test results, I see it formats the input in below format

    a9kita_0-1715952183809.png



  • a9kita Profile Picture
    8 on at

    @ManishSolanki So the task is to pass these manual values dynamically. 
    Thanks for considering!

  • a9kita Profile Picture
    8 on at

    Seems like I was over complicating the flow by adding unnecessary loops. Also, I deleted the extra loops added by default. The flow works perfectly with single loop. 🙂

     

    a9kita_0-1715964767810.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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard