@Shambhu Rai Welcome to Microsoft Q&A platform and thanks for posting your question here. As I understand you want to pass the output of a Databricks notebook to a lookup activity in an Azure Data Factory pipeline:
- In the notebook, call
dbutils.notebook.exit("returnValue")
. This will return the specified value to the service. - In your ADF pipeline, utilize the following expression to access the output:
@{activity('databricks notebook activity name').output.runOutput}
. This expression will provide the output of the Databricks notebook activity with the specified name.
If, however, you need to use a select statement as a lookup parameter, you can create the expression by selecting 'Add Dynamic Content' and specifying the select statement there.
Reference: Run a Databricks notebook
I hope this helps! Let me know if you have any further questions.