<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Notebook parameters not passing through RunNotebook API call in Microsoft Fabric in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-parameters-not-passing-through-RunNotebook-API-call-in/m-p/4848380#M12868</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried this API using Postman successfully. The main differences with yours are the request body that shows below. And also according to the doc&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-public-api#run-a-notebook-on-demand" target="_self"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-public-api#run-a-notebook-on-demand&lt;/A&gt;&amp;nbsp;, the status code is 202.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "executionData": {
        "parameters": {
            "p_a": {
                "value": "I sent it 321",
                "type": "string"
            }
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaleT_0-1760316353606.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1303103iE6E66A57EA385CDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaleT_0-1760316353606.png" alt="DaleT_0-1760316353606.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2025 00:46:11 GMT</pubDate>
    <dc:creator>DaleT</dc:creator>
    <dc:date>2025-10-13T00:46:11Z</dc:date>
    <item>
      <title>Notebook parameters not passing through RunNotebook API call in Microsoft Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-parameters-not-passing-through-RunNotebook-API-call-in/m-p/4847912#M12864</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m trying to trigger a Fabric notebook programmatically using the &lt;STRONG&gt;RunNotebook API&lt;/STRONG&gt;, but it looks like the parameters I’m sending aren’t being passed into the notebook runtime.&lt;/P&gt;&lt;P&gt;The notebook runs fine when I start it manually in Fabric, but when I trigger it from my API, all the parameters show up empty inside the notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m calling the following API endpoint:&lt;/P&gt;&lt;P&gt;POST &lt;A target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/v1/workspaces/&amp;lt;workspaceId&amp;gt;/items/&amp;lt;notebookId&amp;gt;/jobs/instances?jobType=RunNotebook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s a simplified version of my C# code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;var payload = new&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;name = $"Add_branch_notebook_{DateTime.UtcNow:yyyyMMdd_HHmmss}",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;notebookInputParameters = new[]&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;new { name = "isf_code", value = isfCode },&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;new { name = "oracle_name", value = oracleName },&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;new { name = "oracle_code", value = oracleCode }&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request goes through successfully — I get a 200 response, and the notebook starts running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I check the parameters inside the notebook using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import os&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;isf_code = os.environ.get("isf_code", "")&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;oracle_name = os.environ.get("oracle_name", "")&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;oracle_code = os.environ.get("oracle_code", "")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print(isf_code, oracle_name, oracle_code)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all of them are empty.&lt;/P&gt;&lt;P&gt;If I run the same notebook manually in Fabric and define parameters in the UI (“Run with parameters”), it works perfectly — the values print correctly.&lt;BR /&gt;So the issue only happens when running it through the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;I’ve tried&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Verified the token scope (&lt;A href="https://api.fabric.microsoft.com/.default" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/.default&lt;/A&gt;)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Double-checked workspace and notebook IDs&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Tested both of these endpoints:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;/items/{notebookId}/jobs/instances?jobType=RunNotebook&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;/notebooks/{notebookId}/jobs&lt;BR /&gt;Both run the notebook, but the parameters don’t show up.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Tried checking both os.environ and globals() — nothing there.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is parameter passing currently supported when triggering a Fabric notebook using the &lt;STRONG&gt;RunNotebook API&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;If it is, how are those parameters supposed to be accessed from inside the notebook?&lt;BR /&gt;(os.environ, sys.argv, or something else?)&lt;/P&gt;&lt;P&gt;If not yet supported, is this a known limitation or something still being rolled out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Expected behavior&lt;/H3&gt;&lt;P&gt;When I send this payload:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"name": "Add_branch_notebook_20251010_172200",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"notebookInputParameters": [&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;{ "name": "isf_code", "value": "ISF001" },&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;{ "name": "oracle_name", "value": "OracleDB1" },&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;{ "name": "oracle_code", "value": "ORC123" }&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;]&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect the notebook to receive:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;isf_code = ISF001&lt;BR /&gt;oracle_name = OracleDB1&lt;BR /&gt;oracle_code = ORC123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But instead, I’m getting all empty values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate it if someone from the Fabric team or anyone who has successfully passed parameters to a notebook through the API can confirm how this is supposed to work (or if it’s not supported yet).&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2025 05:27:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-parameters-not-passing-through-RunNotebook-API-call-in/m-p/4847912#M12864</guid>
      <dc:creator>NuwanAthukorala</dc:creator>
      <dc:date>2025-10-11T05:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook parameters not passing through RunNotebook API call in Microsoft Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-parameters-not-passing-through-RunNotebook-API-call-in/m-p/4848365#M12867</link>
      <description>&lt;P&gt;I'm not sure specifically about the API, but do you have a parameter cell in your notebook?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#designate-a-parameters-cell" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#designate-a-parameters-cell&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KNP_0-1760310617017.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1303095iE57ED15CF0A09708/image-size/large?v=v2&amp;amp;px=999" role="button" title="KNP_0-1760310617017.png" alt="KNP_0-1760310617017.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Oct 2025 23:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-parameters-not-passing-through-RunNotebook-API-call-in/m-p/4848365#M12867</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2025-10-12T23:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook parameters not passing through RunNotebook API call in Microsoft Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-parameters-not-passing-through-RunNotebook-API-call-in/m-p/4848380#M12868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried this API using Postman successfully. The main differences with yours are the request body that shows below. And also according to the doc&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-public-api#run-a-notebook-on-demand" target="_self"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-public-api#run-a-notebook-on-demand&lt;/A&gt;&amp;nbsp;, the status code is 202.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "executionData": {
        "parameters": {
            "p_a": {
                "value": "I sent it 321",
                "type": "string"
            }
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaleT_0-1760316353606.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1303103iE6E66A57EA385CDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaleT_0-1760316353606.png" alt="DaleT_0-1760316353606.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 00:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-parameters-not-passing-through-RunNotebook-API-call-in/m-p/4848380#M12868</guid>
      <dc:creator>DaleT</dc:creator>
      <dc:date>2025-10-13T00:46:11Z</dc:date>
    </item>
  </channel>
</rss>

