File naming with variable and email PDF records
I am hoping someone can help me with this as I seem to be going round in circles. I am trying to create a statement output to PDF from our accounts showing outstanding invoices and giving each PDF a unique name based on the customer number which is then sent to our email clent.
Essentailly I can get both parts of the script to work OK independently but to display the records correctly in the PDF Preview has to be turned on and then the Variable ceases to work.
I have attached a screen grab of one of the versions of the script.
Any advice would be much apprecaited.