I have created two fetch methods
- to get Invoice Details
- to get Sales order details
I got the result set as list. I need to create common method to send an email (the email method should be generic) by passing the invoice, Sales, etc. arguments to send an email, without creating a common entity is there any other way to solve this. Can any one help me out?
List<Tableinvoiceheader> inv_List=rpc.getInvoiceDetails(); List<TableSalesorder> sales_List=rpc.getsalesDetails(); --email trigger method mailObj.sendemailMessage(From,to,subject,body,"(Generic object)");
Generic object can be either salesdetails or invoicedetails