AnsweredAssumed Answered

email

Question asked by moogie on May 12, 2013
Latest reply on May 13, 2013 by philmodjunk

Title

email

Post

     following works correct when one record  found -  when more, only saves pdf and sends email for first record found?

     •Set Error Capture [ On ]
     •Go to Layout [ “WorkOrder” (WorkOrder) ]
     •Show All Records
     •Enter Find Mode [ Specified Find Requests: Find Records; Criteria: WorkOrder::PickupBillOfLadingPrinted: “=” AND WorkOrder::DernOrEndResult: “=The verify Inc” AND WorkOrder::PickupBillOfLadingPrintedDefine1: “=” ] [ Restore ]
     •Perform Find [ ]
     •Set Variable [ $HAWB; Value:"Attention Dispatch " & WorkOrder::DernOrEndResult & " job " & WorkOrder::Hawb ]
     •Set Variable [ $SavePU; Value:WorkOrder::Hawb & "-" & WorkOrder::PickupBillOfLadingPrintedNumberTimes + 1 & ".pdf" ]
     •Replace Field Contents [ WorkOrder::PickupBillOfLadingPrinted; Replace with calculation: "s" ] [ No dialog ]
     •Go to Layout [ “EndPuRouting” (WorkOrder) ]
     •Replace Field Contents [ WorkOrder::PickupBillOfLadingPrintedNumberTimes; Replace with calculation: WorkOrder::PickupBillOfLadingPrintedNumberTimes + 1 ] [ No dialog ]
     •Loop
     •Save Records as PDF [ File Name: “filewin:/c:/users/quick/desktop/Alerts/$savePU”; Current record ] [ Document - Compatibility: Acrobat 5 and later ] [ Pages - Number Pages From: 1; Include: Specific Pages; Start Page: 1; End Page: 1 ] [ 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 ]
     •Send Mail [ Send via SMTP Server; To: Customer 2::AlertEmailA; CC: Customer 2::AlertEmailB; Subject: $HAWB; Message: "Follow directions per PDF and confirm receipt this e-mail."; Attachment: “filewin:/c:/users/quick/desktop/Alerts/$savePU”; Email Address: ""; Reply-To Address: ""; SMTP Server: "smtp.??.com"; Port: 465; Use SSL; Authentication Type: Plain Password; User Name: "unknown"; Password: "" ] [ No dialog ]
     •Go to Record/Request/Page [ Next; Exit after last ]
     •End Loop
     •Go to Layout [ “WorkOrder” (WorkOrder) ]
     •Show All Records
      

Outcomes