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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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

pbicvsupport@microsoft.com

 

 

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

pbicvsupport@microsoft.com

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

pbicvsupport@microsoft.com

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

pbicvsupport@microsoft.com

 

 

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

pbicvsupport@microsoft.com

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

pbicvsupport@microsoft.com

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.