Forum Discussion
User Properties of Activities in ADF: How to add dynamic content in it?
Yes—User Properties are the right feature, and their values can be expressions. In the Execute Pipeline activity inside the ForEach, open User properties, add a key such as JobStep, then use Add dynamic content for its value. For an array of objects, for example:
@string(item().StepName)
If the loop item is already the step name, use @string(item()).
Publish and run the pipeline, then open Monitor > Pipeline runs > Activity runs. Show the User properties column; each Execute Pipeline run should carry the resolved value for that iteration. User properties are activity-level key/value pairs, with a maximum of five per activity, so keep the key static and make the value dynamic.
If you export diagnostics to Log Analytics, the same information is written under UserProperties as dynamic JSON, which you can parse or filter. One caveat: this labels the parent Execute Pipeline activity run; it does not rename the invoked child pipeline run. Pass the same value as a child-pipeline parameter if you need correlation inside the child.