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

Did 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

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.