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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ajelcocks
Frequent Visitor

Using powerbi-client in pure javascript

I have spent several days trying to find a simple example of using powerbi-client in a pure javascript module. No .NET no C# no "look at the docs created from the code"
All I want is something like...

 

import * as pbiClient from "powerbi-client"

// list available reports

let reports = pbiClient.service.getReports(url, config);

 

// show a report in a given iframe

let report = pbiClient.Report(required, properties, ...)

 

// Detect events in the report...

report.addHandler(function)

 

I have not been able to find anything. I am repeatedly sent to examples written in Visual Studio and C# or sent to the docs generated from typescript or "demos" that dont help.

 

I can eventually derive how to do it reading the tsdoc for the code with trial and error and guess work ... but thats time consuming and painful.
Does anyone know of any simple examples I can use for reference?

0 REPLIES 0

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.