
I'm cross posting this from the Microsoft Flow community. I have created a Custom Connector to access the Power BI API. To create it I followed a post from the Microsoft Power BI community for creating a custom connector for Power BI in Flow.
Unfortuately the Connector is failing with a 401 error and I cannot fathom why. My post in the Microsoft Flow community has screenshots etc.
Problem solved after a support call with Microsoft. It appears that behind the scenes the Custom Connector may not establish correctly the first time of creation. Create a second connector and it work fine. Then remove the first one.