How to update last row in first row

Update last row of Duplicate Id in first row Duplicate ID condition is
-update each duplicate set ID rows
Please see in screenshot there is in put and output file

Hi @Garyy

Check this workflow

Input
image

Output
image

Workflow

Xaml (Legacy)
Test1.zip (2.3 KB)

Thanks,

Thanks @RajKumar_DC Can you help me for this(In csv file update file) question