The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello. I have made two queries in POSTMAN to be able to download a file from a Rest API.
How can i perform the same process with power query? I could make the GET request and i have now a session ID but i dont know how to do the POST request to obtain the same file that i can download doing the POST request in POSTMAN.
Solved! Go to Solution.
Hi @Anonymous ,
to transform a GET to a POST request in Power Query you must add a record with a Content-field as a parameter to the call:
Chris Webb's BI Blog: Web Services And POST Requests In Power Query (crossjoin.co.uk)
Transformation of the content can easily be done using the Json.FromValue function:
Easy POST requests with Power BI and Power Query using Json.FromValue – (thebiccountant.com)
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @Anonymous ,
to transform a GET to a POST request in Power Query you must add a record with a Content-field as a parameter to the call:
Chris Webb's BI Blog: Web Services And POST Requests In Power Query (crossjoin.co.uk)
Transformation of the content can easily be done using the Json.FromValue function:
Easy POST requests with Power BI and Power Query using Json.FromValue – (thebiccountant.com)
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries