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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors