Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
alexandersid
New Member

Export paginated report with multiple parameters

Hi all! 

Currently I'm trying to export reports via REST API. Due to current limitations in API and need to export reports in multiple various states (after applying filters) it was decided to opt for Paginated reports as they allow using parameters in request body. It worked fine with single parameter like this:

{

format: 'PDF',

paginatedReportConfiguration: {

parameterValues: [

{ name: 'status', value: 'Completed'}

]

}

}

However, this didn;t work with several parameters like the following:
{

format: 'PDF',

paginatedReportConfiguration: {

parameterValues: [

{ name: 'status', value: 'Completed'},

{ name: 'month', value: '2'},

{ name: 'year', value: '2020'}

]

}

}

Could someone with more experience in Power Bi API to clarify the reason I'm getting an error and point to possible solution?

(note that each request body from above was sent to its own report, first to report with single parameter, second to report with multiple parameters)

The error shown in console:

To community.png

1 REPLY 1
Anonymous
Not applicable

Hi, 

The parameter Name in the body should be the exact parameter name and not the prompt name.

vasanthi_1-1600530906716.png

 

This body worked out for me:

 

{
"format" : "csv",paginatedReportConfiguration :
{
"parameterValues":
[
{"name": "ScenarioName","Value": "2020 (5+7)"},
{"name": "DimEntityEntityCode","Value": "210"}

]
}
}

 

Could you let me know if it worked out for you..

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.