Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GEbra
Frequent Visitor

Connect Power BI to my compliance web-based software through their API

I have been attempting to connect Power BI to my compliance web-based software through their API for several days now. So can retrieve web data in Power BI, I am still encountering errors, as shown in the screenshot below. I would greatly appreciate any help or guidance on alternative methods to successfully establish this connection.MicrosoftTeams-image.png

1 ACCEPTED SOLUTION

Hi @GEbra ,

 

Please try if this could work:

let
//Replace your real token here
token = "$22233105555A0zc555555e5ehC4K6.5555GQN3tv333455555nXl8FRz9HKVuSfS",
//Get Data
apiUrl = "https://my-compliance.co.uk/api/v1/incidents",
data  = Json.Document(Web.Contents(apiUrl,[Headers=[#"Authorization"="Bearer "&token,#"Content-Type"="application/json"]]))
in
    data

Note:

vjianbolimsft_0-1684396918782.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
GEbra
Frequent Visitor

@v-jianboli-msft 
Thanks alots it works...😊

v-jianboli-msft
Community Support
Community Support

Hi @GEbra ,

 

Not quite sure exactly what the usage requirements of your api are.

Can you call this api successfully through other tools (such as Postman)?

Maybe web.content could help you.

Here is my example:

I will use Datasets - Get Dataset In Group  API as an example:

let
//Get API Token
  tokenapiUrl = "https://login.microsoftonline.com/ecxxxxxxxx/oauth2/v2.0/token",
    body = [
          client_id="d32xxxxxx",
          grant_type="client_credentials",
          client_secret="vMfxxxxxx",
          scope="https://analysis.windows.net/powerbi/api/.default"
],

API_Response = Json.Document(Web.Contents(tokenapiUrl, [Headers = [Accept = "application/json"],
Content = Text.ToBinary(Uri.BuildQueryString(body))])),
token = API_Response[access_token],
//Get Data
apiUrl = "https://api.powerbi.com/v1.0/myorg/groups/476xxxxxxx/datasets/3a7xxxxxx",
data  = Json.Document(Web.Contents(apiUrl,[Headers=[#"Authorization"="Bearer "&token,#"Content-Type"="application/json"]]))
in
data

Final output:

vjianbolimsft_0-1684130645820.png

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi v-jianboli-msft

I am writing to seek assistance with an issue I am facing while using Power BI in conjunction with my compliance system.

I have successfully connected Power BI to my compliance system, enabling me to retrieve incident data. However, I have encountered a limitation where only 100 records are displayed per page. Regrettably, I have more than 100 records of incidents in my compliance system, and I am unable to access the additional data beyond the first page. I have attached a screenshot below to illustrate the current situation.

GEbra_0-1688973289688.png

 

I would greatly appreciate it if you could provide guidance on how to modify the parameters in Power BI, allowing me to view and access the data on page two and beyond.

If there are any specific steps or settings that need to be adjusted within Power BI to retrieve and display a larger number of records per page, please provide detailed instructions. Additionally, if there are any considerations or limitations I should be aware of, kindly let me know.

Hi @v-jianboli-msft 

Thank you for your prompt response, but I have limited knowledge in the field of IT. I attempted the query you provided, but I couldn't figure it out. I would like to share the documentation for the MY Compliance Management API (getpostman.com) as well as the API key. Let's assume the API key is "$22233105555A0zc555555e5ehC4K6.5555GQN3tv333455555nXl8FRz9HKVuSfS" (fake API key). I need assistance with accessing the incident data from the following URL: https://my-compliance.co.uk/api/v1/incidents. Could you please provide a step-by-step process to help me

Hi @GEbra ,

 

Please try if this could work:

let
//Replace your real token here
token = "$22233105555A0zc555555e5ehC4K6.5555GQN3tv333455555nXl8FRz9HKVuSfS",
//Get Data
apiUrl = "https://my-compliance.co.uk/api/v1/incidents",
data  = Json.Document(Web.Contents(apiUrl,[Headers=[#"Authorization"="Bearer "&token,#"Content-Type"="application/json"]]))
in
    data

Note:

vjianbolimsft_0-1684396918782.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.