Skip to main content

Power BI

in Advanced
Authors list
Published: 29 Nov 2022|Last updated: 29 Nov 2022

If you use Power BI and wish to use that to visualize Deskpro's data, you can configure Deskpro as a Power BI Data Source using the Deskpro API.

To connect to the API within Power BI to retrieve your data, follow the instructions below.

Warning


As Power BI is a Microsoft product, we do not provide support regarding use of the product, and would recommend following their documentation if you encounter any issues.

Configuring the API Copy link to Configuring the API to clipboard

  1. Select Get Data from the Home ribbon, and select Web.

Screenshot_20221129_102223.png

  1. Select Advanced, then enter the URL for the endpoint you wish to pull.

    We recommend building the URL in individual parts, with the first part being your Helpdesk's URL, followed by api/v2/, then finally the endpoint you wish to query.

    Finally, add a HTTP request header parameter of Authorization with the value key {api_key}. If you need to generate an API key, you can do so from Admin > Apps & Integrations > API Keys.

Screenshot_20221129_102752.png

  1. Once that is added, Power BI will ask you how you want to authenticate.

    As you are already authenticating through the API key header in the previous step, select Anonymous, and apply it to the full URL.

Screenshot_20221129_103012.png

Note


Deskpro uses a paginated API, meaning that the API response is split over multiple pages, accessible by adding ?page=# to the end of the URL. Power BI does not support paginated APIs natively, and requires some work to fetch the data.

This Stack Overflow article covers how to use paginated APIs with Power BI.

Troubleshooting Copy link to Troubleshooting to clipboard

If you are having issues connecting to the API, we first recommend double checking the endpoint URL is correct and that the API key is valid. If they are both valid, then it is likely due to Power BI's built-in authentication system. If you did not select the Anonymous option, it will attempt to authenticate using their built-in method first, and when it fails, it will not continue.

To fix this, you need to modify the saved credentials within Power BI to ensure it does not attempt to authenticate with any method other than the API key header.

  1. Select File > Options and settings > Data source settings

Screenshot_20221129_103203.png

  1. Select the endpoint you wish to modify, then click Edit Settings

Screenshot_20221129_103302.png

  1. Click Edit under the credentials, and it should display the authentication screen from Step 3 of the setup process. Select Anonymous and save the changes.

Screenshot_20221129_103418.png

  1. Attempt to fetch data through the query again, and the API connection should be successful.

HelpfulUnhelpful

1 of 1 people found this page helpful

next pageJira: Add agent note to a ticket when a Jira issue comment is added
previous pageJSON Response of a Webhook as Variables

Please log in or register to submit a comment.