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,
Hope you can help me with the following. I've got an Endpoint that I'm trying to get data from but the only allowed method is POST on this endpoint. So I'm trying to find a way to get the data in PowerBI.
I've got the post working in Postman:
curl --location '{BaseURL goes here}/Appointments/Get' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {Token goes here}' \
--data '{
"StartDate": "2020-09-25",
"EndDate": "2028-09-25",
"Resources": [
46
]
}'
But if I try to rebuild this in power query it fails. I'm using following Query:
let
URL = Text.Combine({baseURL,"/Appointments/Get"}),
body = "{
""StartDate"": ""2020-09-25"",
""EndDate"": ""2028-09-25"",
""Resources"": ""[""
46
""]""
}",
Source=Json.Document(Web.Contents(URL,
[
Headers = [#"Authorizaion"="Bearer "&token,
#"Content-Type"="application/json"],
Content=Text.ToBinary(body)
]
))
in
Source
I keep getting a (500) Internal Server Error message. Any thoughts?
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 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 6 | |
| 5 |