Forum Discussion

Husain's avatar
Husain
Advocate I
5 years ago
Solved

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?

 

 

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

6 Replies

  • dm-p's avatar
    dm-p
    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