Mails being overwritten
Paul Timms
10-5-21
Operating system: Windows
A customer reported that when they created a mail from a sales order, it also linked an unrelated purchase order (record and PDF) to the mail record. Looking at the mail history, the first entry is "Routed to Internet", which corresponds to the time of the mail queue record for the purchase order. The next entry is "Created" which corresponds to when the mail record was created from the sales order. The time difference was 17 minutes. This should not happen.

Looking at the source code, it must be this line which is failing to get the next free number:

Mailr.SerNr = NextSerNr("MailVc",Mailr.TransDate,-1,false,"");

This is worrying as this code is used throughout the system. It's a GDPR failure if incorrect attachments are being sent to external people.

Is this issue known about? The customer's version is 8.5 2020-08-13.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
David Delač
Hi Aldevinas, Please post your customisations so I can help you....
11:40 20 Feb 2025
Piotr Wycichowski
The register for Order Classes is common for Sales orders and Service orders. When I set an Order Class to create an Activity - it works for Sales Order, while for Service Orders - not. Is any setting...
09:30 18 Feb 2025