Auto Updated last record when user send data off-line to online server

Hello
I want update record automatically when user sync data from Mobile device to Kobo liver server. Like in my case : I have one school with may record in database in kobo toolbox I want to update last record as active or old one de active.

@sandeelo, could you kindly elaborate on your issue so that we should be able to understand it? At the moment, it seems like we are not able to understand it well.