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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Husain
Advocate I
Advocate I

Update Custom Visuals API

Hi

 

I am trying to update my custom visuals API to latest 3.4.0.

 

I have run the pbiviz update 3.4.0 at the root of the visual but after update the pbiviz JSON still shows old API number.

How can I be sure that api was updated?

 

api update.png

 

powerbi-visuals-api - npm (npmjs.com)

1 ACCEPTED SOLUTION

Agreed - the latest published version on NPM is 3.4.0, but the GitHub repo is indicating there's a commit for version 3.5.0, which contains the conditional formatting changes... looks like this hasn't made it to NPM yet, which is a bit of a problem for people that have seen the release notes and want to try it for themselves





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

6 REPLIES 6
dm-p
Super User
Super User

Hi @Husain,

When the SDK and API were released as the same package (prior to v3), pbiviz update would handle he download/apply of the API automatically, but since they've been split into powerbi-visuals-tools (SDK) And powerbi-visuals-api (API) node packages, I think you would still need to install the correct version of powerbi-visuals-api from NPM into your project first, e.g.:

npm i powerbi-visuals-api@latest

If it doesn't work after that, I'd suggest manually changing your pbiviz.json to the new version number so you can start working with the new version, and raise an issue over on the SDK repo, so the team can provide an official response, or take a look at why this isn't working currently in the meantime. It might even be that the process has changed and they need to update the documentation.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




HI @dm-p 

 

Thanks.

I just noticed that the api number is updated in Package.json but not in pbiviz.json

api update2.png


@dm-p 

 

I was trying to experiment with new conditional formatting feature
Conditional formatting - Power BI | Microsoft Docs

But I am getting this error which makes me think that latest api might not be installed

update3.png


Agreed - the latest published version on NPM is 3.4.0, but the GitHub repo is indicating there's a commit for version 3.5.0, which contains the conditional formatting changes... looks like this hasn't made it to NPM yet, which is a bit of a problem for people that have seen the release notes and want to try it for themselves





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Thanks Sir @dm-p 

 

pbiviz update 3.5.0 works 😁

 

update4.png

Awesome - thanks for confirming it worked! I'm hoping to look at it today, and this'll be a major time-saver 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.