hi ctiwari7
A possible way to do that, you create a python file which generates the uuid and then pass it to jobs.taskValues. This is described here: https://docs.databricks.com/en/jobs/task-values.html
As test, I created a python file, with the following content:
import uuid
uuid = str(uuid.uuid4())
print(uuid)
dbutils.jobs.taskValues.set(key = "uuid", value = uuid)
The file will be added as task in a databricks job.
![StefanKoch_0-1732638676813.png StefanKoch_0-1732638676813.png](/t5/image/serverpage/image-id/13174iB3421C0F848F930E/image-size/medium?v=v2&px=400)
For the demo, I have a simple notebook which takes a widget as parameter:
![StefanKoch_1-1732638717745.png StefanKoch_1-1732638717745.png](/t5/image/serverpage/image-id/13175i3DCE17081762DC6E/image-size/medium?v=v2&px=400)
In the job, I add a second task, where I refer to the notebook:
![StefanKoch_2-1732638761389.png StefanKoch_2-1732638761389.png](/t5/image/serverpage/image-id/13176i3A2E4DC3FCEFD921/image-size/medium?v=v2&px=400)
In the parameter field: put the following information:
name: uuid
value: {{tasks.create_uuid.values.uuid}}
![StefanKoch_3-1732638818391.png StefanKoch_3-1732638818391.png](/t5/image/serverpage/image-id/13177i0BBE2B7107CB4499/image-size/medium?v=v2&px=400)