This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have a requirement to integrate Power BI reports within an angular application. All the reports are in the Power BI service already but need the API GET query to connect to it. These reports require 4 parameters. Please let me know how to connect to them via the REST API?
Any help is greatly appreciated. Thank you in advance.
Solved! Go to Solution.
Hi @shravs22 ,
you’ll embed the Power BI report using the powerbi-report component:
<powerbi-report
[embedConfig] = {{
type: "report",
id: "<Report Id>",
embedUrl: "<Embed Url>",
accessToken: "<Access Token>",
tokenType: models.TokenType.Embed,
settings: {
panes: {
filters: {
expanded: false,
visible: false
}
},
background: models.BackgroundType.Transparent,
}
}}
[cssClassName] = { "reportClass" }
[phasedEmbedding] = { false }
[eventHandlers] = {
new Map([
['loaded', () => console.log('Report loaded');],
['rendered', () => console.log('Report rendered');],
['error', (event) => console.log(event.detail);]
])
}
>
</powerbi-report>
embedConfig: Defines the content to embed (report, visual, paginated report, etc.) and its settings.cssClassName: Assigns a CSS class to the embedded item for styling.phasedEmbedding: Improves end-user experience by allowing phased report embedding.eventHandlers: Handles events like report loading, rendering, and errors.Below is the official link will help you:
How to embed Power BI content in an Angular app | Microsoft Learn
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @shravs22 ,
you’ll embed the Power BI report using the powerbi-report component:
<powerbi-report
[embedConfig] = {{
type: "report",
id: "<Report Id>",
embedUrl: "<Embed Url>",
accessToken: "<Access Token>",
tokenType: models.TokenType.Embed,
settings: {
panes: {
filters: {
expanded: false,
visible: false
}
},
background: models.BackgroundType.Transparent,
}
}}
[cssClassName] = { "reportClass" }
[phasedEmbedding] = { false }
[eventHandlers] = {
new Map([
['loaded', () => console.log('Report loaded');],
['rendered', () => console.log('Report rendered');],
['error', (event) => console.log(event.detail);]
])
}
>
</powerbi-report>
embedConfig: Defines the content to embed (report, visual, paginated report, etc.) and its settings.cssClassName: Assigns a CSS class to the embedded item for styling.phasedEmbedding: Improves end-user experience by allowing phased report embedding.eventHandlers: Handles events like report loading, rendering, and errors.Below is the official link will help you:
How to embed Power BI content in an Angular app | Microsoft Learn
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 7 |
| User | Count |
|---|---|
| 49 | |
| 27 | |
| 21 | |
| 20 | |
| 20 |