I want to select Record "Buy-from Vendor Name" and "Qty.Rec.Not Invoiced > 0 " from Purch. Rcpt. Line [121] table and send mail to vendors
So I Create Code Unit But How to write condition I didn't understand
OnRun() //VendNo:='01254796'; SMTPSetup.GET; PurchRcptLine.GET('01254796'); SMTPMail.CreateMessage(SMTPSetup."Email Sender Name",SMTPSetup."Email Sender Email",Vendor."E-Mail",'Test Pending Receipt','',TRUE); SMTPMail.AppendBody('Vendor No' + PurchRcptLine."Buy-from Vendor No."); SMTPMail.Send; MESSAGE('Mail Send');
*This post is locked for comments