Script for attaching pdf to email
I want to be able to create a pdf of a record, give it a unique name and then attach it to an email, all automatically.
I have been able to do all of the above except that I am struggling to attach the created pdf to the email
I have - Set Variable then
Save as a PDF to “$filepath”
In Send email – attach file I have specified “$filepath”
But this last part does not work.
It does if I specify the file in question but obviously the name will change each time.
Can anyone help solve the last part