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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
zupky
Regular Visitor

Organizational Walmart API to PowerBI

Good day, everyone!

Postman already gave me an access token and displayed the data I requested. However, I don't know how to integrate it to power BI automatically. All the basic web options are not working for it shows like "We couldnt authenticate with the credentials provided. Please try again." or "A web API key can only be specified when a Web API key name is provided".

Advanced, on the other hand, also leads me to the basic web option even if I created an authorization header with bearer accesstoken. What should I do with this?

6 REPLIES 6
lbendlin
Super User
Super User

How did it work in Postman?  Did you provide the token as part of the authentication header?

 

You may have provided wrong credential type and that is now cached.  Clear all permissions, and then ty again with anonymous auth and your token in the header . Don't forget the "Bearer "  part.

Yup, both my authorization and WM_SEC.ACCESS_TOKEN. In my GET token request it shows that i have full access, and i tried to specify the GET item it also displays responses.

show a sanitized version of the Power Query code. 
As you can probably appreciate it is nearly impossible to help with API queries without access to said API  (which you may not be willing to provide for understandable reasons)

 

Screenshot 2025-01-06 094120.png

 

i have done it like what I did in postman

Thanks for the reply from lbendlin , please allow me to provide another insight:

Hi, @zupky 
Thanks for reaching out to the Microsoft fabric community forum.
 

Could you please confirm if lbendlin's response has resolved your issue? If it has, kindly accept his response as the solution. This will greatly benefit other community members who have similar issues by helping them find solutions more quickly. Of course, if you have discovered a solution yourself, we would also appreciate it if you could share your response with us.

vlinyulumsft_0-1736231594044.png

Regarding lbendlin's suggestion, to facilitate your search, you may try the following methods:

 

1.In the desktop settings section:

vlinyulumsft_1-1736231594045.png

vlinyulumsft_2-1736231642288.png

2.In the Power Query data source section:

vlinyulumsft_3-1736231642291.png

3.For further details, please refer to:

Authentication in desktop apps - Power Query | Microsoft Learn

4.Below is a solution for a similar issue by clearing the data source credentials:

Solved: We couldn't authenticate with the credentials prov... - Microsoft Fabric Community
 

Additionally, regarding your issue, you may find the following video resources helpful:

https://www.youtube.com/watch?v=a0FqNLI0VsQ
Solved: Can not connect with REST API. We couldn't authent... - Microsoft Fabric Community
 

Lastly, here are responses and official documentation related to your issue:

vlinyulumsft_4-1736231656575.png

Solved: Pull data from RESTful API with token authenticati... - Page 2 - Microsoft Fabric Community
Web.Contents - PowerQuery M | Microsoft Learn

Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

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

 

 

Clear permissions in Data Source Settings and try again with anonymous auth.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.