Hi, I am working on V70115 on Sql2008R2 and have modified the SO Custom Email Plugin. I have copied the section of code from 'Debtor Statement Emailing' where it gets the Email addresses of Contacts with Position 1,2,3 = 'Email Statements' - Lines 59 - 110. I had changed the check to be 'LIKE '2%Stat%' on the Statement plugin and it works great. I have modified this for the SO to be 'LIKE '2%Inv%'.
Having looked at the code I thought the Sql fetch would transfer to the SO Email without any changes. I inserted it before the email address is inserted -
emailReportDialog.EmailTo = debtor.EmailAddress 'salesOrderForm.SalesOrder.Debtor.Email
I have come up with an error though - it tells me that on Line 62 'Type : SqlDataReader is not defined'
I can't find any other reference to SqlDataReader in the 'Debtor Statement Emailing' so not sure what I need to do.
Could you please advise. XML attached.
Thanks


