Skip to content

Instantly share code, notes, and snippets.

@cwebbbi
Created April 25, 2020 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwebbbi/367c492d30ee3f88564e670af5114588 to your computer and use it in GitHub Desktop.
Save cwebbbi/367c492d30ee3f88564e670af5114588 to your computer and use it in GitHub Desktop.
Example payload for the Export To File In Group API endpoint in the Power BI REST API for exporting a paginated report
{
"format":"PDF",
"powerBIReportConfiguration":{
"settings":{
"locale":"en-US",
"excludeHiddenPages":"true"
},
"defaultBookmark":"H4sIAAAAAAAAA+1cW2/bOhL+K4EXi74Ei+FVZJ+2Tdo9xSanu0k…",
"pages":[
{
"pageName":"ReportSection2",
"bookmark":{ "name":"Bookmark3" }
}
],
"identities":[
{
"username":"john@contoso.com",
"roles":[ "sales" ],
"datasets":[ "cfafbeb1-8037-4d0c-896e-a46fb27ff229" ]
}
]
},
"paginatedReportConfiguration":{
"formatSettings":{
"AccessiblePDF":"true",
"PageHeight":"11in",
"PageWidth":"8.5in",
"MarginBottom":"2in"
},
"parameterValues":[
{
"name":"City",
"value":"Seattle"
}
],
"identities":[
{
"username":"john@contoso.com",
"roles":[ "sales" ],
"datasets":[ "cfafbeb1-8037-4d0c-896e-a46fb27ff229" ]
}
]
}
}
@tbidinger
Copy link

Thanks @cwebbbi for the example. This helped a lot. Do you happen to know if there is a possibility to pass a locale to a paginated report as well? I could not find any info on this on the web.
Any help would be really much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment