Add Job Number to File or Folder via SwitchClient

Post Reply
accusteve
Newbie
Posts: 2
Joined: Tue Jun 05, 2012 4:40 pm

Add Job Number to File or Folder via SwitchClient

Post by accusteve »

Is it possible to use SwitchClient to rename a file (add a company job number) or folder?



We are archiving using dated folders at present, but the production folks want the folders to be named the same as the job number. Since we don't know the job number until the file has been processed, we need to rename the existing folders/pdfs accordingly.



I'm hoping that I can set up a checkpoint using SwitchClient (which we've never used), rather than manually renaming the files.



Thanks
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Add Job Number to File or Folder via SwitchClient

Post by dkelly »

You can rename jobs using Client metadata by creating a flow like this:







Use "single line text with variables" for your "replace by" action replacing the original filename.



The path to the Client metadata will look like this:



[Metadata.Text:Path="/field-list/field/value",Dataset="Check",Model=XML]





Dwight Kelly

Apago, Inc.
accusteve
Newbie
Posts: 2
Joined: Tue Jun 05, 2012 4:40 pm

Add Job Number to File or Folder via SwitchClient

Post by accusteve »

That did the trick.



In the Checkpoint element, I set up a single, required Metadata field. Then I used your code in the Action 1 'Prefix' Property of the Rename Job element.



Many thanks,

steve
Post Reply