Forum Discussion

gilbertendaya's avatar
gilbertendaya
Helper IV
6 years ago
Solved

Error 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...
  • ImkeF's avatar
    ImkeF
    6 years ago

    Hi gilbertendaya 

    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.