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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

1 REPLY 1
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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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