Hi everybody; I've the following code
IF (xRec."Shipment Date"<>0D) THEN BEGIN
IF "Cód. Product manager" = 'PM-EDY' THEN BEGIN
Mail.NewMessage('adm@company.com','','Has been modify the date form the item '
+ "No."+' from order '+"Document No."+'date'+ (FORMAT("Shipment Date")),
'','',FALSE);
END;
END;
Mail is codeunit Mail
This is on "Shipment date" field form Sales line table. It sends an e-mail to the product manager from the item when the shipment date modifies, and puts the new date; it runs perfectly. But, how can I do to put also the old date, I mean, the date that has been changed?.
Thanks for help.
Comments
Thanks.
then you could do something like :
Thanks you very much for your help and time.
Using "magic constants" is not good design... :whistle:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Also I've noticed that it sends and e-mail the first time that I put the date. I supossed that putting (xRec."Shipment Date"<>0D) the mail sends when the field modifies, but it doesn't work. What could be the problem also?
I put the code:
Thanks again for help.
- it means "if date was changed and is filled by some value..."
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for help and time.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks again for help.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.