AnsweredAssumed Answered

Help with script to create and email a PDF of a record

Question asked by KimSingleton on Oct 23, 2012
Latest reply on Oct 31, 2013 by stam66

Title

Help with script to create and email a PDF of a record

Post

     This is the script that I have written but it doesn't work frown

     Any help would be appreciated - 

      

      

If [ Get ( SystemPlatform ) = 3 ]
Set Variable [ $FileName; Value:Clients::C_FirstName & Sessions::Ses_Date ]

Save Records as PDF [ File Name: “$FileName”; Current record ]
          [
Document - Compatibility: Acrobat 7 and later ]
          [
Pages - Number Pages From: 1; Include: All pages ]
          [
Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ]

[ Restore; No dialog ]

Set Variable [ $PDFPath; Value:Get ( DocumentsPath ) & $FileName ]

Send Mail [ Send via E-mail Client; To: Clients::C_Email; CC: Locations::Loc_Email; Subject: Clients::C_FirstName & " " & Sessions::Ses_Date; Attachment: “$PDFPath” ]

End If 

      

Outcomes