<?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: How to Pass Dynamic Parameters (e.g., Current Date) in Databricks Workflow UI? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-pass-dynamic-parameters-e-g-current-date-in-databricks/m-p/94607#M8581</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/127704"&gt;@abubakar-saddiq&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, you can use dynamic value reference in datbricks workflows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/jobs/dynamic-value-references" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/jobs/dynamic-value-references&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 15:34:14 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2024-10-17T15:34:14Z</dc:date>
    <item>
      <title>How to Pass Dynamic Parameters (e.g., Current Date) in Databricks Workflow UI?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-pass-dynamic-parameters-e-g-current-date-in-databricks/m-p/94585#M8580</link>
      <description>&lt;P&gt;I'm setting up a job in the &lt;EM&gt;Databricks Workflow UI&lt;/EM&gt; and I want to pass a &lt;STRONG&gt;dynamic parameter&lt;/STRONG&gt;, like the current date (&lt;EM&gt;run_date&lt;/EM&gt;), each time the job runs.&lt;/P&gt;&lt;P&gt;In &lt;EM&gt;Azure Data Factory&lt;/EM&gt;, I can use expressions like @utcnow() to calculate this at runtime. However, I want to achieve the same in Databricks, where the &lt;EM&gt;run_date&lt;/EM&gt; parameter would be automatically calculated and passed at runtime without having to hardcode or manually update it.&lt;/P&gt;&lt;P&gt;For example, in the notebook, I am currently using this to get the parameter:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;run_date = dbutils.widgets.get("run_date")&lt;/LI-CODE&gt;&lt;P&gt;Is there a way to configure dynamic parameters in the &lt;EM&gt;Databricks Workflow UI&lt;/EM&gt; so that run_date gets calculated at runtime, or does this require external handling (e.g., through scripts or APIs)?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 14:33:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-pass-dynamic-parameters-e-g-current-date-in-databricks/m-p/94585#M8580</guid>
      <dc:creator>abubakar-saddiq</dc:creator>
      <dc:date>2024-10-17T14:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Dynamic Parameters (e.g., Current Date) in Databricks Workflow UI?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-pass-dynamic-parameters-e-g-current-date-in-databricks/m-p/94607#M8581</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/127704"&gt;@abubakar-saddiq&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, you can use dynamic value reference in datbricks workflows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/jobs/dynamic-value-references" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/jobs/dynamic-value-references&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 15:34:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-pass-dynamic-parameters-e-g-current-date-in-databricks/m-p/94607#M8581</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-10-17T15:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Dynamic Parameters (e.g., Current Date) in Databricks Workflow UI?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-pass-dynamic-parameters-e-g-current-date-in-databricks/m-p/94740#M8582</link>
      <description>&lt;P&gt;As szymon mentioned, dynamic parameter values exist, but the functionality is still far from what Data Factory has to offer.&lt;BR /&gt;I am pretty sure though that this will be extended.&lt;BR /&gt;So for the moment I suggest you do the value derivation in data factory, and pass the value to the databricks job (create an ADF pipeline to launch dbrx jobs using the API).&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 07:16:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-pass-dynamic-parameters-e-g-current-date-in-databricks/m-p/94740#M8582</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-10-18T07:16:47Z</dc:date>
    </item>
  </channel>
</rss>

