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?
First you have to log into the vault: Search in google: CreateObject("ConisioLib.EdmVault")
Then you have to read out the required variable: Search in google: GetEnumeratorVariable()
Then create the directory, if it doesn't exist: Search in google: vba create folder if doesn't exists
Then save the file in the specified directory: Search in the PDM-Task for .SaveAs( and replace the destination file with the new one.
Retrieving data ...