Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi All!
I have the following API request issue in Power Query. The endpoint expects post method.
let
url = "https:/link/link/link",
content = "{
""fromDate"" : ""2023-09-01"",
""toDate"" : ""2023-11-30"",
""accountantStatus"" : ""1"",
""dateType"" : ""payment_deadline""
}",
headers = [#"x-api-key"="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],
response = Web.Contents(url, [Headers = headers, Content=Text.ToBinary(content)])
in
responseThis request returns a json content. But when I am trying to extract the json formatted data, I get a blank list.
I also tried in postman the same request, it works, and I am getting the proper dataset. In Postman, the result content-type is application/json;charset utf-8, and the result is a valid json format. Does anyone has an idea what could go wrong here?
Other API request with the same method and content data returns data without any problem. But there the content-type is only application/json. Could this content-type difference be a problem?
Any workarounds?
I appreciate any help!
David
try specifying application/json in the Accept header section
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 5 | |
| 5 |