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...
dm-p
Super User
3 years agoHi pbi_vis_dev,
Your code snippet looks okay for what it looks like you're attempting to do. If you're getting the success callback but your result is false, then my thoughts are that Power BI is rejecting the download due to tenant settings. What's worth checking is if you have the ability to download data from custom visuals enabled at a tenant level:
This is usually disabled by default, and if you're not a tenant admin, you may need to work with who is to set this up.
Once enabled, you'll need to wait about 15 minutes or so (and possibly reload your current report/debugging session) to pick up the updated tenant setting.
Regards,
Daniel