Page 1 of 1

Renaming Files in FullSwitch

Posted: Fri Dec 09, 2011 10:53 pm
by JohnPCS
How can I trim a filename in FullSwitch? Let's say I want to remove everything before and including an underscore character.



I played with attaching [Job.Name:After=_] to the JobState of a folder specifically created for staging the file renames, but that doesn't actually rename the file itself.



Any way to do this without scripting inside the actual workflow? If not, what would be your recommended workaround?



Thanks!

Renaming Files in FullSwitch

Posted: Mon Dec 12, 2011 9:09 pm
by bert_vr
JohnPCS wrote: How can I trim a filename in FullSwitch? Let's say I want to remove everything before and including an underscore character.



I played with attaching [Job.Name:After=_] to the JobState of a folder specifically created for staging the file renames, but that doesn't actually rename the file itself.



Any way to do this without scripting inside the actual workflow? If not, what would be your recommended workaround?



Thanks!


John,



You can use the 'rename job' element using the same variable.



Bert

Renaming Files in FullSwitch

Posted: Mon Dec 12, 2011 10:28 pm
by JohnPCS
Perfect! Thank you. Works great... not sure how I missed it to begin with, but I appreciate you pointing me in the right direction.