Home > Blockchain >  Data factory activity to read both ifelse true/false activity output
Data factory activity to read both ifelse true/false activity output

Time:10-29

Expectation is to read output of If else condition based on True or False and the immediate activity should read either of the activity output.

As we cant name same activity name for both True and False, I need to name it unique but to read either of one activity like an "Or" condition is there a possibility as at any time only 1 activity output be avaialble.enter image description here

True - adfactvtyfilter_activities_1
False - adfactvtyfilter_activities_2

So on completion of If else proceeding activity should check for @activity('adfactvtyfilter_activities_1').output.value or @activity('adfactvtyfilter_activities_2').output.value, whichever is available.

CodePudding user response:

  1. Create a pipeline variable to store the output of an activity.
  2. In the If condition activity, use Set variable activity to store the output value of the previous activity.
  3. Use the same variable for True and False condition activities as only 1 condition executes at a time.
  4. Use the variable output in the next steps as required.

True activities:

enter image description here

False activities:

enter image description here

  • Related