Rejections Template

edudiaz
Member Posts: 39
Hi,
We have a high volume of daily purchase orders and we are using the Document Approval process to authorize them. The system is working great but purchasers are having a hard time knowing which orders have been rejected. Typically they get an e-mail notification stating that it has been rejected, but the e-mail does not make any reference to the order number. Where is the rejections template and what can I do to add this field in it? I only see the approval and overdue templates.
Thanks for your help,
Eduardo
We have a high volume of daily purchase orders and we are using the Document Approval process to authorize them. The system is working great but purchasers are having a hard time knowing which orders have been rejected. Typically they get an e-mail notification stating that it has been rejected, but the e-mail does not make any reference to the order number. Where is the rejections template and what can I do to add this field in it? I only see the approval and overdue templates.
Thanks for your help,
Eduardo
0
Comments
-
Did you check SendPurchaseRejectionsMail function in Codeunit Approvals Mgt Notification (440)?0
-
Hi Mohana, Thanks for your reply. As requested, I went to codeunit 440 and found the below code for Rejections. I am not a programmer but where and what would I need to add so that the PO number gets embedded as part of the e-mail subject or body.
SendPurchaseRejectionsMail(PurchaseHeader : Record "Purchase Header";ApprovalEntry : Record "Approval Entry")
SetTemplate(ApprovalEntry);
Subject := STRSUBSTNO(Text007,Text010);
Body := Text013;
SMTP.CreateMessage(SenderName,FromUser,SenderAddress,Subject,Body,TRUE);
SMTP.AddCC(Recipient);
Body := '';
Thanks for your help!
ED0 -
You could change the line
Subject := STRSUBSTNO(Text007,Text010);
to
Subject := STRSUBSTNO(Text007,Text010) + ' ' + FORMAT(PurchaseHeader."Document Type") + ' : ' + PurchaseHeader."No.";0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions