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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
shravs22
Frequent Visitor

Power BI REST API : GET with multiple parameters

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. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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.

lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.