Forum Discussion
Encode a Text field
- 8 years ago
I'm not familiar with that, but I must say that the web.contents function in M is pretty powerful. In my case, I ended up not using encoding at all but constructing the encoded string directly (long story to explain, but it allowed me to have separate Power Queries to list the fields I want to retrieve from a specific entity).
You do know that it's possible to call a Python script from M? There are some restrictions, though.
Oh wow, that is nice.
The only thread I could find on these other librairies said that it would either require some advanced coding, or I would have to subscribe for a program.
So I ended up using Python yes. Power BI Service does not support any of the required libraries, but I call the API in Python, transform the data there and import the output as text files to Power BI via the folder connector. Not the ideal solution considering I need to schedule upodates in Python as well now, but it works.
If you Michiel or anyone else are looking for more opportunities with connecting to APIs, please give my suggestion a vote here. Python truly is an awesome and easy to use tool, that would great with a further integration in Power BI :)
