To create a consistent "batch_no" value that can be reused throughout the pipeline run, you need to define a pipeline parameter called batch_no at the pipeline level.
Use a "Set Variable" activity or a "Set Parameter" activity at the beginning of the pipeline to generate the value for batch_no using an expression like:
@concat(formatDateTime(utcnow(), 'yyyyMMddHHmmss'))
When calling child pipelines or data flows, pass the batch_no parameter to them by mapping it in the "Execute Pipeline" activity or the parameters section of a data flow.
Reference the batch_no parameter in subsequent activities (like copy data, conditional checks) to verify that the same value is used throughout the pipeline.