- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rest API Call from Custom Visual
Hi Everyone,
I am new to power bi development and trying to achieve below scenario.
I am trying to make a REST API call through the Custom Visual created in javascript. But unable to perform the action successfully.
I can see below error in chrome dev tools console, once my custom visual appears in the report:
Refused to connect to 'https://xxxxxxxxxx/Data.json' because it violates the following Content Security Policy directive: "default-src https://app.powerbi.com data: blob: 'unsafe-inline' 'unsafe-eval'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Is it possible to make a restful api within the limits of Custom Visual? or if there's another appropriate method of achieving this?
Thanks,
Zaheer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You need to specify the RestAPI endpoint inside capabilities.json, Below is the code for your reference :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can a custom visual do an API call and hold the response in memory? does the 30,000 limit apply in that case?

Helpful resources
Power BI Monthly Update - July 2025
Check out the July 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
02-11-2025 06:12 AM | |||
05-19-2025 02:54 AM | |||
06-26-2025 01:30 AM | |||
03-03-2025 03:12 PM | |||
03-31-2025 03:22 AM |
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |