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

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

Reply
GregBoet
Frequent Visitor

How to find out SDK version for Javascript

In describing the use of the Javascript getSlicerState() method to get the state of hierarchy slicers, the Power BI documentation says that "the hierarchy slicer is supported from SDK version 2.21".

When I use Javascript to call slicer.getSlicerState(), sometimes I am getting good responses, but sometimes am getting exceptions thrown for hierarchy slicers, as described in a previous question I posted.

I want to rule out any problem with the "SDK version," but I do not understand what this means in the context of calling a Javascript method for a Power BI embedded report.

 

I understand what the Power BI SDK is, in the sense of the .NET NuGet package Microsoft.PowerBI.Api, but I do not understand how I can check my "SDK version" in any sense that is relevant when using Javascript rather than .NET.

 

The technology I am familiar with is .NET and Javascript for web app software development. There are others in my company who build Power BI reports. If there is something on their end that needs to be checked, I am going to need to know what specific questions to ask them.

 

Can anyone explain what I am missing? Is there truly a Javascript-relevant SDK version that I need to be checking here, or is the documentation leading me astray here?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @GregBoet,

Perhaps you can take a look the git page about the javascript api related, you can find the version number from the publish page and corresponding library file property.

In addition, you can also try to reference to the following link to check the package versions:

nuget command line - how to get version of latest version of package? - Stack Overflow

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @GregBoet,

Perhaps you can take a look the git page about the javascript api related, you can find the version number from the publish page and corresponding library file property.

In addition, you can also try to reference to the following link to check the package versions:

nuget command line - how to get version of latest version of package? - Stack Overflow

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.