Forum Discussion

smpa01's avatar
smpa01
Community Champion
2 years ago
Solved

Export to PDF

I am using ExportToFile API which is amazing to say the least. How can I specify a page so that it only exports pgName=Pg10 instead of whole report. Also, I nedd to use a Filter .  I tried this in ...
  • smpa01's avatar
    smpa01
    2 years ago

    This is absolutely doable from the report with n number of pages. I have tested out.

     

    Worflow => ExportToFile->Polling->Get File Of Export To File

     

    $requestBody = @"
    {
        "format": "PDF",
        "powerBIReportConfiguration": {
            "pages": [
                {
                    "pageName": "ReportSection1234567890"
                }
            ],
            "reportLevelFilters": [
               {"filter": "Calendar/Month in ('Jan')"}
            ]
        }
    }
    "@@