those links may help you
as summary there are several ways to do it, one of the methods is
To retrieve the maximum value of a specific column from the output of a Copy Data activity in Azure Data Factory when transferring data from an on-premise SQL Server to ADLS Gen2, you can use the following approach:
Aggregate Transformation in Data Flow
- Another method is to use a Data Flow activity after the Copy Data activity.
- Use the Aggregate transformation in the Data Flow to define the MAX aggregation on your specified column. This allows you to directly compute the maximum value of the watermarkDateColumn.