VBScript Set PDF file name in multifile

Hi everyone!

We have a workflow that created multifile with PDF when the object enters a certain state. We would like to set FILENAME of PDF same as a property "Document code". Is there a simple way or do I need to write a script? If so, can anyone help me? I am a beginner at scripting...

thank you!

Dejan