
You won’t be able to insert data into a Databricks table by sending an SQL INSERT statement in the HTTP body — that approach doesn’t work with Databricks REST APIs.
Databricks does not execute raw SQL from generic HTTP requests, even if Parse JSON succeeds. The API will accept the request but silently won’t write data, which is what you’re seeing.
INSERT INTO table VALUES (…) in HTTP body is not supported
Parse JSON only validates the response structure
Databricks REST endpoints require specific APIs, not free-form SQL
SQL execution works only through:
Databricks SQL Statement Execution API
Jobs API
Delta Lake file writes
So Power Apps → Custom Connector → “INSERT SQL” will never persist data.
Use the Databricks SQL REST API:
POST /api/2.0/sql/statements
Example body:
{
"statement": "INSERT INTO my_schema.my_table VALUES ('101','John','90')",
"warehouse_id": "xxxx-warehouse-id"
}
Requirements:
SQL Warehouse must be running
Token must have SQL permissions
Table must be Delta table
This is the only supported way to run INSERT statements through REST.
Create a Databricks notebook:
data = {
"EmpId": dbutils.widgets.get("EmpId"),
"Name": dbutils.widgets.get("Name"),
"Score": dbutils.widgets.get("Score")
}
spark.createDataFrame([data]).write.mode("append").saveAsTable("my_table")
Call it from Power Automate / Custom Connector using:
POST /api/2.1/jobs/run-now
Pass values as notebook parameters.
This method is:
very reliable
scalable
commonly used in enterprise integrations
Flow:
Power Apps
↓
Power Automate
↓
ADLS Gen2 (JSON / CSV)
↓
Databricks Auto Loader
↓
Delta Table
This is how Databricks ingestion is normally designed.
Advantages:
no API throttling
high volume support
full retry handling
best performance
❌ Insert SQL via generic HTTP body
❌ Parse JSON → insert logic
❌ Direct JDBC from Power Apps
❌ Databricks REST without SQL warehouse
For Power Apps integrations:
Small / real-time writes → SQL Statement API
Enterprise / bulk ingestion → ADLS + Auto Loader
Complex logic → Databricks job / notebook
Your issue isn’t with Power Apps or the connector — Databricks simply does not support executing raw INSERT statements through standard HTTP APIs.
You must use either:
Databricks SQL Statement Execution API
Databricks Job / Notebook execution
ADLS ingestion pattern
Once you switch to one of these, inserts will work correctly.