Pass invokedBy when trigger a pipeline using WEB Activity

Vladislav Vlasov 0 Reputation points
2023-07-10T08:28:10.67+00:00

Hello,

Does anyone know, is it possible to set invokedBy parameters when trigger ADF pipeline using WEB Activity?

By default, it is showing as 'Manual Trigger', but I would like to see the parent pipeline run id from which a child pipeline has been triggered.

User's image

Thank you in advance!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,120 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Subashri Vasudevan 11,206 Reputation points
    2023-07-10T13:06:39.9766667+00:00

    @Vladislav Vlasov

    Hi, similar question has been addressed in the below has been addressed in the below thread.

    https://learn.microsoft.com/en-us/answers/questions/81708/triggering-a-pipeline-using-web-activity-not-able

    I tried something similar and it works for me.

    Below is my web activity, where i call a child pipeline called pl_child.

    Screenshot 2023-07-11 at 10.52.01 AM

    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 :

    Screenshot 2023-07-11 at 10.56.34 AM

    In the monitor tab, i can confirm that, my child was able to see parent run id:

    Screenshot 2023-07-11 at 10.57.59 AM

    Hope this is of help.

    Feel free to let us know for any further assistance on this. Awaiting your response.

    BR


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.