Renaming Files in FullSwitch

Post Reply
JohnPCS
Newbie
Posts: 10
Joined: Thu Sep 15, 2011 9:46 pm

Renaming Files in FullSwitch

Post 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!
bert_vr
Newbie
Posts: 14
Joined: Mon Dec 12, 2011 3:45 pm

Renaming Files in FullSwitch

Post 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
JohnPCS
Newbie
Posts: 10
Joined: Thu Sep 15, 2011 9:46 pm

Renaming Files in FullSwitch

Post 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.
Post Reply