Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm trying to connect to write a query to connect to an API where I need to login and get a token, to then get access to the data. I'm not super familiar with M or with writing queries in general, I've mainly dealt with SQL connections and other simple connections that I've edited by transforming in Power Query. I connected to an API once, and it was through a url and key and that's it.
From my research and multiple test runs that lead to nothing (i'm not crying, you are), is it necessary to create a custom connector, or is this something that can be done through a blank query? I'm not opposed to creating a connector, but before I go down that route, I want to know if it's absolutely necessary or if I'm overcomplicating this.
Any response is greatly appreciated !! 🙂
Solved! Go to Solution.
You can try to refer to the following link to connect the api by OAuth2
powerbi - Private REST API connection Power BI (M - Power Query) - Stack Overflow
But it better to use custom connector ,because when you write it directly by M, the safety will be affected. the following link is about use custom connector.
Power Query SDK overview - Power Query | Microsoft Learn
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can try to refer to the following link to connect the api by OAuth2
powerbi - Private REST API connection Power BI (M - Power Query) - Stack Overflow
But it better to use custom connector ,because when you write it directly by M, the safety will be affected. the following link is about use custom connector.
Power Query SDK overview - Power Query | Microsoft Learn
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.