Hi, similar question has been addressed in the below has been addressed in the below thread.
I tried something similar and it works for me.
Below is my web activity, where i call a child pipeline called pl_child.
I am passing the run id of my parent pipeline in the body as below (type in the body section without using dynamic expression option)
{"parent_runid":"@Pipeline().runId"}
In the child pipeline, i have a pipeline parameter that receives the parent run id and assigns to a variable , for testing purpose.
After I run the pipeline, i see below json in the Input arrow
{
"url": "https://management.azure.com/subscriptions/subsid/resourceGroups/rgdemo/providers/Microsoft.DataFactory/factories/azdatafactorydem/pipelines/pl_child/createRun?api-version=2018-06-01",
"method": "POST",
"headers": {},
"body": {
"parent_runid": "396134f2-052a-4f93-96da-5fa33c22aba4"
},
"authentication": {
"type": "MSI",
"resource": "https://management.azure.com"
}
}
My run id :
In the monitor tab, i can confirm that, my child was able to see parent run id:
Hope this is of help.
Feel free to let us know for any further assistance on this. Awaiting your response.
BR