AnsweredAssumed Answered

Converter Task / PDF export: Change VB script to modify custom variable

Question asked by Christoph Philipp on Apr 5, 2018
Latest reply on Apr 23, 2018 by Ulf Stockburger

Hi All,

 

I will try to ask my questions as precise as possible:

I am using a Converter Task to automatically create PDF's on certain transitions in the workflow.

 

The location of the pdf's is based on a custom variable or/and on the source file name.

 

The Variable is for example: "abcde.00".

 

The Folder is "abcde name".

 

That means: i want the script to go to:

1. Go to a folder where all pdf's are saved in a subfolder.

2. Check if there is a folder that has the same 5 characters at the beginning as the Variable.

3a. If yes, save the pdf into that folder.

3b. If no, create a folder ["First 5 chars of the variable" "name"].

4b. Save the pdf into that folder.

 

Where and how could i do that? Or can i do it somehow without changing the VB-Script?

 

Best regards

Outcomes