[TIP 112] - Perform an Action Using Dundas BI's Interface with Code

Do you want to perform an action that you can do using Dundas BI’s user interface with code? Perhaps in your own application? Most of these actions call an underlying REST API to the Dundas BI server to do the work.

For Example:

  • 1 - You may wish to add/modify a user in Dundas BI using your own interface in your own application
  • 2 - Maybe you want to force an IN-MEMORY data cube to be build from your application because you know the data has updated
  • 3 - Maybe you want to build a notification without using the Dundas BI interface

All the above examples are actions that would trigger via a REST API, but how can you know how to do this? You could go through the documentation, but let’s face it, no one reads docs.

Did you know that you can use the debugger tools in your browser to watch the requests being sent to Dundas BI? Just perform the operation that you wish to understand via code while the debugger is open, and you will see exactly what Dundas BI received to perform the operation. Once you know what the REST API calls look like, you can just copy them and do the same thing in your application.

Here is a great article that explains Chromes ability to watch network traffic – it will give you great clues about how to use the REST API, which APIs to use and which functions to look up in the documentation.

1 Like