User Profile
toresenneseth
Frequent Visitor
Joined 6 years ago
User Widgets
Contributions
Re: Call Fabric User Data Function from a custom visual
Hi, I'm able to call the UDF if I run it from a console app, for example like shown here: https://learn.microsoft.com/en-us/fabric/data-engineering/user-data-functions/tutorial-invoke-from-python-app However, I'm not able to call the API from our custom visual, so I'm simply trying to understand if this scenario is supported or not yet. FYI: Our custom visual is in AppSource, and currently using the Power BI Authentiaction API to get access tokens for the logged in user. When I call the Power BI Authentiation API, the access token I get back does not have the following audience: https://analysis.windows.net/powerbi/api Rather, it has the audience as specified by the AADAuthentication privilige in the capabilities.json file. This is expected, but I guess this also is the problem. It is however, not something we're in control of, as this is what the custom visuals spec says we have to do to get the Auth API working. If I simply hard code the access token returned to the console app into the custom visual, I'm able to invoke the UDF (I know it's not a viable solution). I also tried granting the custom visual Service Princial permissions to https://analysis.windows.net/powerbi/api/GraphQLApi.Execute.All, but it had no effect (still got a 403) So what I'm trying to understand is if calling Fabric UDFs from a custom visual is supposed to work (and I have poor skills), or if it's still too early - which is also fine for now, as I'm simply exploring the possibilities.1.3KViews0likes0CommentsCall Fabric User Data Function from a custom visual
Hi all, Does anyone know how to call a Fabric User Data Function from a custom visual? When I make the call, I get a 403 Forbidden response. The docs says that it's because the payload is too large, but I belive it's actually an authentication issue (because I get the same response if no data is sent). How can a custom visual make an authenticated call to a Fabric UDF? I'm currently using the Authentication API to get an access token for the current user, but that's probably not correct?Solved1.5KViews0likes4CommentsRe: Is it possible to change the names of the subtotal and total in the Table Matrix?
Hi, You can try the Financial Reporting Matrix custom visual by Profitbase. It has more flexibility regarding formatting and subtotals than the built-in matrix. https://appsource.microsoft.com/nb-no/product/power-bi-visuals/WA200000642 Disclaimer! I work for Profitbase, so I'm not totally objective here 🙂Re: Testing export to PDF/PowerPoint
Hi, Yes, but it does not seem like the host environment is set to "ExportReportHost" in Power BI Desktop during export, so I'm not able to test if it works in web / service. The best thing would be if there was some kind of API to get notified when the user performs an export so I could apply a watermark, but as far as I know, there's no such API or event being raised by Power BI?1.4KViews0likes0CommentsTesting export to PDF/PowerPoint
Hi all, Do you know if there's a way to test the export to PDF/PowerPoint feature without already being certified? What I want to do is add a watermark to my visual if there is no have a valid license key when doing the export. I noticed the powerbi.common.CustomVisualHostEnv.ExportReportHost enum, so I assume this should work, but as far as I know, there's no way to actually test that it works until after a the visual has been certified? -Thanks!
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.