Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
arpost
Post Prodigy
Post Prodigy

How do I pass parameters to Fabric Notebook via REST API?

Greetings, community. I am trying to trigger an on-demand job to run a notebook using the REST API (Job Scheduler - Run On Demand Item Job - REST API (Core) | Microsoft Learn). The notebook is triggered successfully, but the parameters are not passed in no matter what configuration I try. Does anyone have suggestions/ideas?

 

The docs indicate a parameter input like this should work:

 

{
"parameters": [
    {
      "name": "testval",
      "value": "start",
      "type": "Text"
    }
}

 

However, no parameters are registered by the notebook:

 

arpost_0-1782235498273.png

 

I have tried other "forms" of this that date back to earlier versions of the APIs equally unsuccessfully.

1 ACCEPTED SOLUTION
v-hashadapu
Community Support
Community Support

Hi @arpost , Thank you for reaching out to the Microsoft Community Forum.

 

The generic Run On Demand Item Job API shows a top-level parameters property, but it also notes that parameter support is not broadly supported and can vary by item and job type. Based on your confirmation that passing the notebook parameters through executionData.parameters works, along with @Srisakthi 's similar working example, this appears to be the approach that currently works for passing parameters when invoking a notebook through the REST API.

 

It seems RunNotebook does not honor the generic parameters payload in this case, so the documentation could be clearer about the expected request format for notebook jobs. If you believe the documentation should explicitly call this out, you could consider submitting an idea in the  Microsoft Fabric Ideas or create a post in the Fabric Community Blog to raise awareness among users, which will in turn gets the notice of Microsoft to help improve the documentation and guidance for this scenario.

 

Also, please refer:

Job Scheduler - Run On Demand Item Job - REST API (Core) | Microsoft Learn
Manage and execute Fabric notebooks with public APIs - Microsoft Fabric | Microsoft Learn

 

Thanks @Srisakthi  for sharing your working example.

View solution in original post

7 REPLIES 7
v-hashadapu
Community Support
Community Support

Hi @arpost , Hope you are doing well. Kindly let us know if the issue has been resolved or if further assistance is needed. Your input could be helpful to others in the community.

v-hashadapu
Community Support
Community Support

Hi @arpost , Thank you for reaching out to the Microsoft Community Forum.

 

The generic Run On Demand Item Job API shows a top-level parameters property, but it also notes that parameter support is not broadly supported and can vary by item and job type. Based on your confirmation that passing the notebook parameters through executionData.parameters works, along with @Srisakthi 's similar working example, this appears to be the approach that currently works for passing parameters when invoking a notebook through the REST API.

 

It seems RunNotebook does not honor the generic parameters payload in this case, so the documentation could be clearer about the expected request format for notebook jobs. If you believe the documentation should explicitly call this out, you could consider submitting an idea in the  Microsoft Fabric Ideas or create a post in the Fabric Community Blog to raise awareness among users, which will in turn gets the notice of Microsoft to help improve the documentation and guidance for this scenario.

 

Also, please refer:

Job Scheduler - Run On Demand Item Job - REST API (Core) | Microsoft Learn
Manage and execute Fabric notebooks with public APIs - Microsoft Fabric | Microsoft Learn

 

Thanks @Srisakthi  for sharing your working example.

Thanks for the reply, @v-hashadapu. I'll look at doing that. It was definitely a challenge figuring this out through a lot of trial-and-error, so it would be useful to have supported vs. non-supported be tracked.

Srisakthi
Super User
Super User

Hi @arpost ,

 

I have tried this few months earlier in powershell, it was working

$runNotebookBody = @{
executionData = @{
parameters = @{
DDLPath = @{
value = "Files/check"
type = "string"
}
lakehouse_name = @{
value = $lakehouseName
type = "string"
}
}
}
configuration = @{
defaultLakehouse = @{
name = $lakehouseName
id = $lakehouse.Id
workspaceId = $workspace.Id
}
}
} | ConvertTo-Json -Depth 10
$global:baseUrl = "https://api.fabric.microsoft.com/v1"
$notebookRunUrl = "{0}/workspaces/{1}/items/{2}/jobs/instances?jobType=RunNotebook" -f $global:baseUrl, $workspace.Id, $notebook.id
Invoke-RestMethod -Headers $global:fabricHeaders -Uri $notebookRunUrl -Method POST -Body $runNotebookBody

 

Regards,

Srisakthi

 

GilbertQ
Super User
Super User

Hi @arpost 

 

Why not simply use a data pipeline where you can pass through the parameters successfully to your notebook?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Good question. This is the first step toward a Power Platform-based orchestration solution. Having a pipeline + notebook combo just to orchestrate incurs duplicative capacity usage and also has potential limitations in cases where we may have changing parameters.

API-based approach enables us to pass "dynamic" parameters to the Fabric item in question.

 

EXAMPLE: I want a Power App that lets users make selections related to a particular technical or business process, select some items that produce parameter inputs, and then trigger.

arpost
Post Prodigy
Post Prodigy

I was able to successfully run with a similar construction to what was provided here (Solved: Re: Notebook parameters not passing through RunNot... - Microsoft Fabric Community), but that's not what the docs indicate; is there something I'm missing in the docs without using executionData?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon โ€“ Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save โ‚ฌ200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.