Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
amitsangal78
Frequent Visitor

Redirection error in custom visual

I am creating a custom visual in powerBi service. But Facing problem when trying to redirect on click of button or even on the click of anchor link.

 

Error which I am getting when trying to redirect using javascript-

Blocked opening 'www.google.com' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.

 

Description About the visual:-

I have three dropdown in my custom visual whose values i have to supply as query parameters with a url. So, that it can interact with my webservice and create the pdf or ppt. 

 

But i can unable to open this link in seperate tab by using javascript or even from anchor link.  

I can share the code if you want. 

 

Please help its urgent . Thanks in advance.

3 ACCEPTED SOLUTIONS

Hello @amitsangal78,

 

Power BI Custom Visuals API 1.7 doesn't allow to open any external urls due to security risks.

This feature will be included into API 1.9.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

 

 

View solution in original post

I suppose that API 1.9 will be released by end of this year (we don't have a clear ETA at lest for now).

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

View solution in original post

v-viig
Community Champion
Community Champion

API 1.9.0 has been released recently.

This version introduces Launch URL API that allows custom visuals to open external URLs.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

View solution in original post

6 REPLIES 6
amitsangal78
Frequent Visitor

Please let me know if this is possible in power Bi or not. I am stuck very badly init.

Hello @amitsangal78,

 

Power BI Custom Visuals API 1.7 doesn't allow to open any external urls due to security risks.

This feature will be included into API 1.9.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

 

 

Hello @v-viig Thanks for the quick response. By When will be the API 1.9 get release.

I suppose that API 1.9 will be released by end of this year (we don't have a clear ETA at lest for now).

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

v-viig
Community Champion
Community Champion

API 1.9.0 has been released recently.

This version introduces Launch URL API that allows custom visuals to open external URLs.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

Hey the url for 'Launch URL API' is not valid. Can you give me an updated url or tell me how to enable 'allow-popups' permission so I can open a new window from the sandbox. Thanks

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.