Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Following The following document describes how to access the secured LMS API Endpoints (Following example is for a CSMART API) using the Power BI Desktop application. In this process, authentication will be completed in the background and is not needed to provide an access token every time while calling APIs.

Instructions

...

  1. Open the provided Power BI file in desktop application (File → Open → Browse this Device → select the .pbix file from disk → click Open) and click on Transform data under home the Home tab

View file
nameCSMART_API_PBI.pbix

...

  1. That will open a new window similar to the following. Now you need to setup the API configuration. For that click on the , select the Home tab and open Manage Parameters → Manage Edit Parameters button

...

  1. image-20240119-094700.pngImage Added

...

  1. Change the parameter values according to your environment where you also need to provide

...

  1. the login credentials (user name and password). You only might need to change the parameters marked in the red box.

  2. That will open a new window similar to the following. Now you need to setup the API configuration. For that, select the Home tab and click Manage Parameters

...

  1. Change the parameter values (Current Value) according to your environment where you also need to provide the login credentials (user name and password). You only might need to change the parameters marked in the red box.

...

  1. After making the changes, click on OKbutton to confirm. Then click on the function GetConsolidatedReportingData from in the left Queries menu. Provide the From Date ConReportFromDate (i.e. 2023-11-01T00:00Z ) and To Date ConReportToDate (i.e. 2023-12-01T00:00Z ) and click on the Invokebutton, It . The function will authenticate and call the API in the background and will to fetch the data.

...

  1. If you get any popup like this then click on this and select as Anonymous connect. If you don’t get any popup like this, then just ignore this step.

...

  1. Click on Close & Apply

...

  1. (top-left of the window).

...

  1. This will import the data in the power into Power BI and will show display the imported data at the right panel where you can select columns for preview. You can later use the data for further processing as you want.

...

  1. .

...

Troubleshoot:

If you get any kind of connection error then follow the following steps.

  1. Clear all the permissions. Data Source Settings->Global Permissions->Clear Permissions

...

  1. Follow Step 4 from previous section. (only Step 4)

  2. Open this window and change permission to Anonymous connect for each URL listed here.

...

  1. Again follow from Step 4 from previous section to fetch the data to process.