Is it possible to use
- Code: Select all
salesOrder.Email
I have tried and it seems to require SalesOrderReport, nameToGiveAttachment et al. I really just need to populate EmailTo, EmailFrom, Subject, Body.
The other option might be to create an EmailLog and just use
- Code: Select all
SalesOrder.EmailLogCollection.Add(emailLog)
but I'm having trouble creating an email log item via
- Code: Select all
JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLog emailLog = Manager.CollectionItemFactory.CreateCollectionItem<JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLog>(null);
The above line generates an error "No overload for method 'CreateCollectionItem' takes 1 arguments.
What do you suggest might be the best way to generate an email - ensuring it is reflected in the email log/shows in the emailed badge?


