Don't see the purpose for Printer Layout (Printer Setup in English?) coming where it does in the script.
Has the PDF already been created before this script runs? I don't see any Save as PDF step here.
In your Send Mail script step, make sure that you have "$FileName" and only see one set of quotes. If you have ""$filename"", then re-open the send mail dialog for this step and remove the quotation marks.
...and don't copy the typing error:
Send email [send by client; To:: Anställd::Email; Ämne: "Värdering"; "$filnamn].
Thanks, it's solved.
In my mail I've written a text to the customer (via the script).
Is it possible to include the customer's name in the mail like:
"Hi <<name>>, thanks for your purchase. Here is your ticket"
Right now I use:
"Hi, thanks for your purchase. Here is your ticket"
When you specify the Body in your Send Mail dialog, one options is to use a calculation. It can be written like this:
"Hi " & Yourtable::namefield & ", thanks for your purchase. Here is your ticket."
You can also use the substitute function, in several different ways which can make for a more flexible approach:
Subsitute ( TextField ; "<<name>>" ; YourTable::namefield )
This way, you can put "Hi <<name>>, thanks for your purchase. Here is your ticket." in the text field, but have the substitute function replace any instances of <<name>> with the current record's name field. This allows you to have several different messages typed into different text fields and/or different records and you can personalize all of them with the same basic calculation.