Pull the next P/N via a Dispatch Action?

I'd like to create a Dispatch action to copy a part file but give the part a new number (the next one in the Serial number) and change the filename to match that new number.  Copying and renaming seem straight forward, but I can't see how to get access to the Serial number from Dispatch...

Thx.

SolidworksSolidworks Pdm enterprise Pdm