Forum Discussion
Export to file API with Current Values
- 5 years ago
Hi Anonymous
The option won't prompt automatically when you use the API, did you specify the export content in the JSON body?
Note that:
You can use the
exportToFileAPI to programmatically export a report in a specific state, after applying filters to it. This is done using Bookmarks capabilities. To export a report using bookmarks, use the bookmarks JavaScript API.For example, you can use the bookmark's
capturedBookmark.statemethod to capture the changes a specific user made to a report, and then export it in its current state.Personal bookmarks and persistent filters are not supported.
Here're blogs for your reference:
Hi Anonymous
The option won't prompt automatically when you use the API, did you specify the export content in the JSON body?
Note that:
You can use the exportToFile API to programmatically export a report in a specific state, after applying filters to it. This is done using Bookmarks capabilities. To export a report using bookmarks, use the bookmarks JavaScript API.
For example, you can use the bookmark's capturedBookmark.state method to capture the changes a specific user made to a report, and then export it in its current state.
Personal bookmarks and persistent filters are not supported.
Here're blogs for your reference:
Thanks v-diye-msft, pretty much clear solution you've provided.
One more question, Is embedded Q&A supports ExportToFile?
Can you also look into these Posts, please?
https://community.powerbi.com/t5/Developer/Export-embedded-Q-amp-A-results-to-PDF/m-p/1378432
https://community.powerbi.com/t5/Developer/Export-embedded-Q-amp-A-results-to-PDF/m-p/1371667#M25738
Thanks