Can you verify that the PDF is actually being created?
One detail that I spot right off is that Go To Related Records will fail to change layouts if there are no related records in Support Call for the current record in whatever layout you are on when you start this script. The rest of the script steps will then execute just as though there was not GTRR step in your script.
I'd recommend either checking for related records in Support Call just before the GTRR or checking for an error code immediately after it so that you can halt the script and tell the user that there are no support records to email for the current client.
I have checked and it does in fact navigate to the correct layout with the right information but still does not attach a PDF. the email id creted fine and i can see on the iPad that a PDF is being created. but not attaching to the email when the email box pops up.
Thank you for your posts.
Having colons in your file name may cause an issue. Check to see if "Customer:::Last Name.pdf" is in fact created. Perhaps you wanted the Customer::Last Name field concatenated with ".pdf". If so, then change the first Set Variable command to:
Set Variable [ $FileName ; Value: Customer::Last Name & ".pdf" ]
Assuming the PDF file is created, open it and check the contents. Is this what you were expecting. If so, then change the second Set Variable command to:
Set Variable [ $PDFPath ; Value: "file:" & Get ( DocumentsPath ) & $FileName ]
Keep me updated with any progress.
TSGal it was in fact the naming issue. Changed it to what you recommended and BOOOM in the bag!!!!
Thanks for your helpPreferencesPreferences