This sanitized cURL query works fine [1]:
curl -X POST https://adb-<workspaceId>.azuredatabricks.net/api/2.0/sql/statements/ \
-H "Authorization: Bearer <myPersonalAccessToken>" \
-H "Content-Type: application/json" \
-d '{
"warehouse_id": "<myWareHouseId>",
"catalog": "hive_metastore",
"schema": "dev.bronze",
"statement": "SELECT * FROM dev.bronze.shawn_test_table;"
}'
Unfortunately, when I try to put the cURL command into the desktop version of Power Automate, I get the error:
{"error_code":"MALFORMED_REQUEST","message":"Invalid JSON given in the body of the request - failed to parse given JSON"}
What am I doing wrong in Power Automate?
[1] - Various AI engines helped write that query.
[2] - See Also: Arrogant Sage Media, "Power Automate Desktop - Connect to API, Read & Process JSON & Create and Post JSON", YouTube:
https://www.youtube.com/watch?v=RSWqw8kJYrw ,
June 14, 2023, Last Visited: August 23, 2024

