Pass trigger name dynamically to child pipeline

Kumar, Arun 336 Reputation points
2023-10-29T12:48:49.2433333+00:00

Hello,

Is there a way to dynamically pass the trigger name from parent pipeline to child pipeline. I have a parent pipeline with three triggers - trigger1, trigger2, trigger3. Part of pipeline should execute only if its trigger 2. What i have done so far is created a parameter in child pipeline and hardcoded the trigger2 name, capture that in a variable inside the child pipeline and passed to if condition to check. If its trigger 2 name, execute the lookup and for each. Else do just Wait and exit.

Any option to dynamically capture trigger2 name and pass it to child pipeline?

Thanks in advance

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} votes

Accepted answer
  1. Subashri Vasudevan 11,226 Reputation points
    2023-10-29T15:08:32.5133333+00:00

    HiI hope your doubt is to find out the trigger name which triggers the parent Pipeline and if it's trigger2, you will have to execute a set of logic. Pls correct if my understanding is wrong.

    From the parent Pipeline you can use the below expression inside an if condition and compare with trigger2. In the true part, call child pipeline and in the false part, have a wait activity. This need not be done in child. If condition can be implemented in parent itself.

    pipeline().TriggerName

    Please try and let us know if that helps or you need clarification.

    Thanks


0 additional answers

Sort by: Most helpful

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.