Forum Discussion
Apply Date Slicer Filter using C# SDK or Power BI Rest API for a Power BI Report
Hi Neehar ,
Using bookmarks you can export the report in a specific state, including configured filters, slicers, and other settings. You can refer the following links to get it.
Export to file - Power BI Report with Filters / Parameters
The documentation currently states that the Bookmark name (whilst accepted as a parameter) is not currently available.
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile#pagebookmark
The only way to update output via bookmarks, is to pass in the bookmark state.
And the only way that you can get the bookmark state (that I know of) is via the JavaScript API. https://github.com/Microsoft/PowerBI-JavaScript/wiki/Bookmarks#capture-and-get-a-current-view-as-a-b...
The 'capture' function will return a single string value that represents the bookmark state. You can then pass this into the API.
Best Regards