Webservice to open external program when clicking link in Power BI - web-services

as Microsoft Power BI only allows to add hyperlinks of the following types
mailto
News
Telnet
FTP
File
I was thinking, if it could be possible to write a small webservice (ideally under IIS), which redirects an URL to let open a different hyperlink type.
The thing is, that I made a Power BI report, which reads from a Microsoft SQL server instance, which is running behind a propriertary Windows native CRM software.
What I want to achieve is to get back to the software, as soon as e.g. a customer number in the Power BI dashboard is clicked (made clickable using the conditional formatting).
It is already possible to open the dataset using an URL by entering something like:
<applicationname>:OpenAddress?Number=12345 in my Webbrowser.
So as Power BI does not let me add this syntax directly, I thought it could be possible to have a link like http://localhost:8080/OpenAddress?Number=12345 which redirects to the above individual hyperlink type.
Thanks in advance for any ideas.
Regards
Lars

After a while of thinking I solved this issue using some simple lines of Javascript:
let params = new URLSearchParams(location.search);
parameter = params.get('number');
finalurl = "<applicationname>:OpenAddress?number=" + parameter;
window.location.replace(finalurl);

Related

How do I create a hyperlink for a filepath in powerbi?

I am trying to create a file path link in either a table or a tooltip on a map in Powerbi. After doing some research "File" is an acceptable input for the "Web URL" data category. But for some reason when I try to use it as a hyperlink in the browser, it will not work. Below are some pictures of the problem.
What is the best way to fix this issue? Do I need to change how I string in the file path?
I found definitive answer - it doesn't work as one would expect. It appears it only used to work on Edge, however Edge has switched to Chromium underneath and this capability has not been carried over since it is a potential security risk.
If I navigate from Power BI Service and try and right click to open the link, I get. about:blank#blocked
Here is the post I found
And here is the idea you need to vote for: - Extract below.
Currently open a local file from Desktop is not possible and from browser is very tedious as explained on May 2017 update:
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-may-feature-summary/#urlTables
"If you want to use file URLs, there are some limitations. They will not open in the Power BI Desktop, only in web browsers. For most browsers, you will need to right click on the link, copy the link address, and paste the URL in a new tab"
It will be great if can be improved the way to open the files in same way as with web images or files (http://).

How to call a CRM action from powerbi

Need to call a CRM Custom Action with parameters from Powerbi
Please help me with this.
Thanks in advance!!!!
Power BI is just a data visualization platform, not a replacement for app development.
When you want to do such things like clickable action in each row of PowerBI report list of records - maximum possibility is hyperlink (url). Unfortunately CRM Custom action is not url accessible, but that too you want with paramters. Forget it.
I have other ideas shared in this SO answer, like you can try Power Automate (MS Flow) or custom API to explore by url accessibility.
You can also achieve your requirement with the help of Power Automate.
Steps -
Create new flow with Http Trigger
Invoke flow URL from power BI
Call custom action from flow
Please mark my answer verified if i were helpful

Create a Mobile Responsive Version of a PowerBI report that is Published to the Web

I've recently published a specific PowerBI report and despite creating a 'Phone' View on PowerBI Desktop this didn't show up in the final embed code.
I've looked into PowerBI Embedded Playground and managed to generate the relevant access tokens and even try it out, but still couldn't figure out how to modify the code in such a way to generate a mobile view.
The questions and answers below somehow didn't give me the insight I needed, still somehow need some additional work:
Mobile view is not being shown for embedded powerbi report
Create Report in Embed View via PowerBI API
Power BI RS web embedding in mobile web browser
What do I need to do to get started? Which documentation do I need to look into exactly? I need to embed this report in a Sharepoint 2010 Page and I need it to be mobile responsive on page load and not via a seperate link.
This isn't related to the access token in any way. It is generated before configuring the embedding process. To embed the report in phone view, you must specify MobilePortrait layout type in the embed configuration, i.e. something like this:
var config = {
.....
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true,
layoutType: models.LayoutType.MobilePortrait <-- THIS ONE
}
};
If you omit layoutType, it will be shown in the landscape view (i.e. like in the desktop). For more information about the configuration see Embed Configuration Details, and for embedding in general you should start from Embedding Basics.

Power BI Embedded Report Picker

I have an embedded site for my users to view a report. I have one master login for Power BI that all customers are routed through.
Authentication and the request are done through a .NET backend using PowerBI.Api.V2. Everything works well when I hardcode a single reportId and embed the fullscreen iframe.
My question is for customers that have multiple reports; Is there a built in report-picker-report that I can embed where the report selection is already handled for me? Or should I work on building an interface after retrieving the list of reports my users can pick from?
No, there are no built-in pickers. Power BI provides an API interface and you must implement these for yourself. Of course, you can build these pickers and make them available for us :)
To get list of workspaces you need to call Get Groups. This will give you a list of user's workspaces. You can show their name property values to the user, but you will need their id (the guid). When you know the id of a workspace, you can list the reports in it by calling Get Reports In Group. The same way you can call Get Dashboards In Group and Get Tiles In Group.

Getting Power Bi Embedded URL

I want to get the embedded URL of my existing reports. Is there any option to get those URL in a list view?
As per i know, currently there is no api for retrieving all reports.
For more information, you can refer Power BI Api reference.
You can get a list of all reports which have embed code. However you need an extra click to get the embedded code.