This is all linked to the
Watch object which can be called by various script.
The code I provided you goes into a
Run script plugin in Workflow. Forget about PressTalk. As I said previously, it is only valid in the Design tool.
What my code does is
(assuming that the original raw value was put into a JobInfo1 variable before the Run script plugin and that you are expecting the resulting email to be in JobInfo2) it grabs the raw value from
JobInfo1 variable, calculate the current length of it, pad with '0', adds the rest of the email address, and stores the resulting into
JobInfo2.
Once you are out of the
Run script, the resulting email can be found in
JobInfo2.