How can I continue to use the JavaScript API v2?

Yellowfin FAQ shared this question 3 years ago

We have recently upgraded to the latest Yellowfin 9.2 and we know there is a new JavaScript API version, but we do not want to have to upgrade our existing API content.

How do we keep our current API calls? And how to we keep using the JavaScript API v2 for new content?

Replies (1)


As of Yellowfin version 9.2, JavaScript API v3 has been released and is the default option for all new API content. Any existing JavaScript API v2 content from previous version of Yellowfin will continue to work and be supported until otherwise advised.

If you wish to continue using the JavaScript API v2, you will need to make a slight modification to your API URL. The following URL will be generated when you select to Embed a report using the JavaScript API v3:

<script type="text/javascript" src="http://localhost:8080/JsAPI/v3?reportUUID=9617ada1-28bc-42ef-9c3f-8b40d3d1ae61"></script>

To convert this to the JavaScript API v2, you would need to remove the /v3 from the src link as shown below

<script type="text/javascript" src="http://localhost:8080/JsAPI?reportUUID=9617ada1-28bc-42ef-9c3f-8b40d3d1ae61"></script>

For more details on the JavaScript API v2 please see our wiki entry here

As always, please reach out to us if you have any quesitons, or run into any issues.



Leave a Comment
Attach a file