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.
Hi all,
The REST API has a method to set the connection string on a datasource...
https://msdn.microsoft.com/en-us/library/mt748181.aspx
However, it always returns an error. I've tried calling it every way I can think of. Still get the same '400 Bad Request' error.
Has anybody actually called this method successfully? I posted a similar question here without a response...
There is a beer in Sydney for anyone that can help - I'm pulling my hair out.
Solved! Go to Solution.
Finally worked it out - it's not possible.
For some reason, the Rest API is documented twice. Once on msdn and once here...
And you can see on the apiary page that SetAllConnections only works on direct query connections.
@Anonymous
I'm not aware of any capability of the Power BI REST API to set the connection string, though the online documentation lists the SetAllC
I would consult this internally and post back if there comes any update.
By the way, the SetAllConnection API for Power BI Embedded actually works.
Thanks Eric. Please let me know what you find out. If I can't use the documented API then my project is pretty screwed.
Finally worked it out - it's not possible.
For some reason, the Rest API is documented twice. Once on msdn and once here...
And you can see on the apiary page that SetAllConnections only works on direct query connections.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.