Create a Custom workflow response to send notification mail

raja123
Member Posts: 50
I want to send a notification mail to the user stating that the "request is approved". I'm using nav 2017.I'm thinking that creating a similar response like SendApprovalRequestForApprovalCode in codeunit 1521(Workflow response handling) with reverse functionality will help. Please give me suggestions.
Example:
User1 created a Purchase order and sends request to approver(User2). A notification Mail sent to User2
User2 Checks the mail and he approved. Now I want to send a mail to user1 with mail body ' Request is approved'.
Example:
User1 created a Purchase order and sends request to approver(User2). A notification Mail sent to User2
User2 Checks the mail and he approved. Now I want to send a mail to user1 with mail body ' Request is approved'.
0
Answers
-
Hi,
One way of tackling this issue since you want to use a custom template for mail will be:
Create a custom table where entry for mails gets queued and send them using a report attached in job queue under NOTIFY category.
Now since you are using NAV 2017 there is functionality of Events and Subscriptions so you can subscribe to field trigger - Status-On Validate of table approval entry and create a mail entry in the new Email Entry table whenever Status changes from Open -> Approved.
This won't need any modification in standard code so you'll be safe.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