how to create automatically a serial number for files that are inside on pdm server vault ?

initially inserted into the file server, but then implements the serial number so that the name of the file is the serial number, but previous to the implementation files already on the server, were without serial number, as I can I can agregarles serial number.

and tried to copy those files out, remove them from the server and then insert it again, it works but the problem is that relationships are deleted

SolidworksSolidworks Pdm enterprise Pdm