The below link should help :
https://aboutdataai.com.au/2021/07/05/azure-synapse-notebooks-pass-parameter-and-return-output/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have added based parameter on my notebook from pipeline but I am unsure how I can use them in the notebook. May I know is there a way to use it ? Thanks in advance.
The below link should help :
https://aboutdataai.com.au/2021/07/05/azure-synapse-notebooks-pass-parameter-and-return-output/
Hi @Lotus88
Yes, you can definitely pass parameters from an Azure Data Factory (or Synapse pipeline) to a Synapse notebook. Here's how you can use them inside the notebook:
# Access parameter in Synapse notebook
p_sysupdate_dt = mssparkutils.notebook.params.get("p_sysupdate_dt")
p_sysupdate_dt
) in your notebook logic — for example, in date filtering or logging.Just make sure the parameter name used in the notebook exactly matches the one you set in the pipeline (in this case, p_sysupdate_dt
).
Let us know if you need further help!