PDF on Server with variable name

hi,
has anyone already tried to produce pdf with variable name and destination?

eg :
c: \ customer1 \ pdf20210101.pdf
c: \ customer2 \ pdf20210102.pdf

in the past I handled it by running a procedure onapplicationint and extracting the name there, instead now I would like to pass the name from a variable of another application

thanks