Hey Dolly,
1 way . If you wish to make your filelist deployment name to be unique, you could write a pre-processor [before the job is initiiated] which would get the files attached and use JAVA I/O to write a filelist file in a temp location. You can include date & timestamp to make it a unique file.
2 way: Once the job is created, you could write an URL task or an external task then you have job id available. I am pretty sure you are aware to achieve through external task.
If you are using URL Task then the execute method would have below parameters prepassed
public void execute ( CSClient client, CSExternalTask currentTask, Hashtable params) throws CSException
and you could use int job = currentTask.getWorkflowId();
String file_list_path = Create the filelistpath with job id
Create the file using java i/o
wdeployqaTask.setVariable("odSubst_file_list_path", file_list_path);
Where wdeployqaTask is task object of the deploy task once the job is active
odSubst_file_list_path variable would be available to OD deployment config as $file_list_path [the same you would define in the config].. odSubtst_ would be stripped out by OD.
Hope this helps.
Thanks,
Mohit.