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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
crln-blue
Post Patron
Post Patron

Odata feed to powerbi with header using basic auth

Hello,

I'm trying to get data from the odata feed from a sap source but it seems like it isn't working because it requires that the client should be stated in odata link. But powerbi ignores the part of the link where the client is stated in the form: <odata url>/?sap-client=310.

 

So I decided to make a blank query and get data through the odata feed.

 

below is my m query:

let

url = <my odata url>
Source = OData.Feed(url, [Headers = "sap-client=310"])

in
Source

 

However, this doesn't work and prompts to make my connection anonymous. But my odata url requires basic auth credentials in order to show the data.

Screenshot 2023-10-04 215312.png

 

What would be the correct way to proceed with this? 

Thank you very much.

 

1 ACCEPTED SOLUTION
crln-blue
Post Patron
Post Patron

This is related to my other question on the Desktop forum so I'll paste the link here: https://community.fabric.microsoft.com/t5/Desktop/Can-t-connect-to-SAP-Odata-Feed-in-Power-BI/m-p/34...

 

TLDR: I made the credentials anonymous and pass authorizations ("Basic " and credentials) and client as a header.

 

 

View solution in original post

1 REPLY 1
crln-blue
Post Patron
Post Patron

This is related to my other question on the Desktop forum so I'll paste the link here: https://community.fabric.microsoft.com/t5/Desktop/Can-t-connect-to-SAP-Odata-Feed-in-Power-BI/m-p/34...

 

TLDR: I made the credentials anonymous and pass authorizations ("Basic " and credentials) and client as a header.

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.