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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.

Top Kudoed Authors