Can't subscribe to OnAfterLogInteraction in CU5051

airam
Member Posts: 91
I need to run a process after an interaction log entry is created, but I can't seem to be able to subscribe to the above captioned event.
any tips?
thanks
any tips?
thanks
0
Answers
-
What do you mean by can't subscribe? Your event subscriber codeunit won't compile, or the subscriber doesn't fire at runtime? What version of BC?Kyle Hardin - ArcherPoint0
-
Thanks for your reply.
It's NAV2018. The codeunit is not compiling giving this error "The event 'OnAfterLogInteraction' is not found in the target"
Thanks0 -
Is your codeunit in C/AL or AL?Kyle Hardin - ArcherPoint0
-
AL0
-
Create a new CAL codeunit - just temporarily. Add a function there and declare it as an event subscriber for CU5051. In C/AL, you can do a lookup of the available published events. Choose the correct OnAfter event. If you close out of function properties and go back to your temporary codeunit, it will have created the new function with the exact Event subscriber, complete with the correct parameters.
You can use this to write your AL codeunit. I suspect that you do not have the correct event defined in AL. Make the AL match the event subscriber in C/AL exactly. Then go delete your C/AL codeunit.Kyle Hardin - ArcherPoint0 -
my bad! sorry! in CU5051 there aren't any published events in NAV2018, I was actually checking BC CAL (as we have 2 databases) hence why i couldn't subscribe!
I need to find a way of running a process through AL after an interaction has been logged in NAV2018..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