Forum Discussion
pbi_vis_dev
3 years agoNew Member
Custom visual: file download API doesn't download the file, the result is false
Hi all! I try to download file from custom visual with File Download API (https://learn.microsoft.com/en-us/power-bi/developer/visuals/file-download-api#how-to-use-the-file-download-api). But the...
apodo01
3 years agoFrequent Visitor
Hi! Please excuse my english.
I had the same problem and successfully solved it.
Along with configuring the PBI tenant, my problem was... the "ExportContent" privilege was missing in the "capabilities.json" file.
Please, refer to this page: https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities#example-of-a-privileges-definition
I fixed my mistake thanks to this API: https://learn.microsoft.com/en-us/power-bi/developer/visuals/permissions-api
I hope this will help.
Adrian.