Modify ApprovalsMgmt in NAV 2016
IvonaK
Member Posts: 115
Hi to all,
I have a task, to do some modification in Sales Approvals Management. I do that in CU:439 Approvals Management in functon FindApproverSales in NAV 2013.
But now in NAV 2016 I can't find a CU:439. On page Sales Order on Page Action "Send Approval Request" I see the code:
IF ApprovalsMgmt.CheckSalesApprovalsWorkflowEnabled(Rec) THEN
ApprovalsMgmt.OnSendSalesDocForApproval(Rec);
where ApprovalsMgmt is CU:1535 in NAV 2016 and OnSendSalesDocForApproval is Event with out code.
[IntegrationEvent] OnSendSalesDocForApproval(VAR SalesHeader : Record "Sales Header")
Can please somebody tell me how to find the code that execute calling the ApprovalsMgmt.OnSendSalesDocForApproval(Rec);
Thanks a lot,
Best Regards,
I have a task, to do some modification in Sales Approvals Management. I do that in CU:439 Approvals Management in functon FindApproverSales in NAV 2013.
But now in NAV 2016 I can't find a CU:439. On page Sales Order on Page Action "Send Approval Request" I see the code:
IF ApprovalsMgmt.CheckSalesApprovalsWorkflowEnabled(Rec) THEN
ApprovalsMgmt.OnSendSalesDocForApproval(Rec);
where ApprovalsMgmt is CU:1535 in NAV 2016 and OnSendSalesDocForApproval is Event with out code.
[IntegrationEvent] OnSendSalesDocForApproval(VAR SalesHeader : Record "Sales Header")
Can please somebody tell me how to find the code that execute calling the ApprovalsMgmt.OnSendSalesDocForApproval(Rec);
Thanks a lot,
Best Regards,
0
Answers
-
For Checking any Event subscriber you can do it like -
1. From Tools select Debugger and select Event Subscription.
2. Look for the Publisher Object ID as your object ID & Published Function as function Name and then see the subscriber in the same window.
3. The Subscriber will have the code that you want (may be in different format than 2015).
Refer Here - http://saurav-nav.blogspot.in/2015/12/microsoft-dynamics-nav-2016-events.html
IN your Case the Code that will fire when this event is fired is in -
Codeunit - 1520
Function Name - RunWorkflowOnSendSalesDocForApproval
You actually need to learn two things if you want to customize approvals -
1. Event & Subscriptions.
2. Workflow Events & Responses.
3. Workflow technically.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
Thanks a lot.
I will do as you advise.
Best Regards,0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
