针对这个问题,您可以遵循以下步骤:
以下是在ForEach循环中添加动态值的附加列的代码示例:
{ "name": "For Each Loop with Dynamic Value", "properties": { "activities": [ { "name": "ForEach Source Row", "type": "ForEach", "dependsOn": [], "policy": { "timeout": "7.00:00:00", "retry": 0, "retryIntervalInSeconds": 30, "secureOutput": false }, "typeProperties": { "items": { "value": "@activity('Copy Data').output.value", "type": "Expression" }, "batchSize": 50, "activities": [ { "name": "Add dynamic column", "type": "DerivedColumn", "dependsOn": [], "policy": { "timeout": "1.00:00:00", "retry": 0, "retryIntervalInSeconds": 30, "secureOutput": false }, "typeProperties": { "additionalColumns": [ { "name": "Dynamic Column Name", "type": "String", "defaultValue": "", "value": { "value": "@{item().ColumnName}", "type": "Expression