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
AlexeyRusinov
Helper II
Helper II

Import pbix with choosing an enterprise gateway

Hello everyone,

I have an analysis services data source, working with enterprise gateway. I want to write a code that will import a load of pbix files into a specific group, without any additional effort in app.powerbi.com from the user.

So I use the url https://api.powerbi.com/v1.0/myorg/groups/{groupid}/imports, and it imports files fine. The reports and datasets are created.
But when I open any report, it shows me the message
"Report could not access the data source because you have to select which gateway you would like to use". 
After I choose the gateway, it works fine.

My question is: can I specify it in my code also? So that when I open the report, it already knows which gateway to use?

Any advice will be much appreciated

1 REPLY 1
Eric_Zhang
Employee
Employee

@AlexeyRusinov

AFAIK, there's no such a REST API to configure datasource in gateway. All supported REST APIs are listed here, you can submit your request at Power BI Ideas.

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.