Dispatch set variables to multi files

I'm trying to do the following actions by dispatch.

When one or more files are moved to certain state, show dialog and ask user to enter values then they are set in data card.

I set the following actions

Check out file %PathToSelectedFile%

Edit Box

Set Card variables

Check in file%PathToSelectedFile%

When Edit Box is shown only 1 file is checked out. Data card of the file is updated, but other files aren't updated.

Do anyone know how to treat multi files in dispatch?

SolidworksSolidworks Pdm enterprise Pdm