Looking to rename a file(s) with dispatch - rename based on serial number

Hi all,

Ive found how to use dispatch to rename a file, but I cant seem to find out if its possible to rename a file using a number generated from a serial number (so get the next number available). Am I correct in thinking this might be more of an API task rather than a dispatch task? If so does anyone have any examples please?

Thanks!

SolidworksSolidworks Pdm enterprise Pdm