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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Sokon
Advocate V
Advocate V

OData feed editor: A web API key can only be specified when a web API key name is provided

I want to connect to an OData feed by using an Web API key for authentication. The obvious way is to choose "Get Data"/"OData Feed" and use the editor. After I entered the URL I need to choose how to authenticate. Because I have a API key I chose "Web API", entered the key and hit "connect" --> Error.

OData-Error.png

I'd really like to specifiy the API key name - but how? The dialog in this case doesn't work as designed and is of no use. We always need to use a workaround.

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @Sokon,

 

You can pass ApiKeyName in the OData.feed() use Power Query. For more information, see:


authenticating with Excel Power Query against .Net Odata Web Api
API Strategies with Power BI

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Is there no way to specify the ApiKeyName without having to resort to writing the OData.feed() function yourself in Power Query? This might be fine for technical users, but isn't a great experience for business users. With OData feeds using basic authentication, everything can be done in the UI/Wizard (no need to write the function expression). But when an OData feed uses an API key, the UI/Wizard is useless... why can't Microsoft simply expose the ApiKeyName parameter somewhere in this UI?

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.