Forum Discussion
gilbertendaya
Helper IV
6 years agoError in getting POST request in an API
Hi, Need your help with my issue in Power BI. Here is the M-Script let url = URL, body = "{""limit"": -1,""sort"": {""option"": ""ASC"",""field"": [""FlightDate""},""parameters"": [{}],""r...
- 6 years ago
You could simply using different code.
This first example you've posted contained wrong brackets.
Why is that?
Could it be that JSON you've been using in Postman has different nesting structure?
Must your -1 be a text instead of a number?
Honestly, I've been there a couple of times to recognize that a simple typo is throwing things off.
Very had to believe that Power Query is the issue here.
gilbertendaya
Helper IV
6 years agoHi ImkeF
But this is working fine with PostMan ๐
and then here in Power BI desktop, it is not working ๐
ImkeF
Community Champion
6 years agoPretty sure that there is a difference in the code you've used in both versions.
Checking with Fiddler is the way to go forward if you cannot spot it by code analysis.