{ "name": "ParentPipeline", "properties": { "activities": [ { "name": "YearLookup", "type": "Lookup", "dependsOn": [], "policy": { "timeout": "7.00:00:00", "retry": 0, "retryIntervalInSeconds": 30, "secureOutput": false, "secureInput": false }, "userProperties": [], "typeProperties": { "source": { "type": "SqlServerSource", "sqlReaderQuery": "select distinct year(createddate) as year from testfileload", "queryTimeout": "02:00:00", "partitionOption": "None" }, "dataset": { "referenceName": "SqlServerTable1", "type": "DatasetReference" }, "firstRowOnly": false } }, { "name": "ForEach1", "type": "ForEach", "dependsOn": [ { "activity": "YearLookup", "dependencyConditions": [ "Succeeded" ] } ], "userProperties": [], "typeProperties": { "items": { "value": "@activity('YearLookup').output.value", "type": "Expression" }, "isSequential": true, "activities": [ { "name": "Execute Pipeline1", "type": "ExecutePipeline", "dependsOn": [], "userProperties": [], "typeProperties": { "pipeline": { "referenceName": "childpipeline", "type": "PipelineReference" }, "waitOnCompletion": true, "parameters": { "year": { "value": "@string(item().year)", "type": "Expression" } } } } ] } } ], "variables": { "month": { "type": "String" }, "year": { "type": "String" } }, "annotations": [], "lastPublishTime": "2020-10-12T09:05:25Z" }, "type": "Microsoft.DataFactory/factories/pipelines" }