Reach published events inside extension

Fommo
Member Posts: 138
Hi,
I have a problem that I can't find the answer to.
We have an integration that is installed as an extension in the customer environment. To allow the customer to do some tweaking of the integration flow we have also added some published events in our extension code that we thought would be reachable from an open codeunit in the customer database, a codeunit that obviously is not included in the Extension so that the customer can add some additional code themselves.
For example we have a published event right before posting the invoice document that is created by the integration. I know there are standard events that probably could be used, but our published event holds more information from the integration data that might be valuable to any customer customization to do a final tweak before posting.
So, the question is... Is it possible to subscribe to events that are published from an Extension Codeunit? When we try we cannot find the sender object as extension objects are not visible to external code.
If this is not solvable, how would you solve a similar problem. We do not want to install our integration code as open code, but we also need to allow some customers to tweak the integration as to handle certain specific requirement that are unique and can't be implemented in our standard code.
Kind regards
/Simon
I have a problem that I can't find the answer to.
We have an integration that is installed as an extension in the customer environment. To allow the customer to do some tweaking of the integration flow we have also added some published events in our extension code that we thought would be reachable from an open codeunit in the customer database, a codeunit that obviously is not included in the Extension so that the customer can add some additional code themselves.
For example we have a published event right before posting the invoice document that is created by the integration. I know there are standard events that probably could be used, but our published event holds more information from the integration data that might be valuable to any customer customization to do a final tweak before posting.
So, the question is... Is it possible to subscribe to events that are published from an Extension Codeunit? When we try we cannot find the sender object as extension objects are not visible to external code.
If this is not solvable, how would you solve a similar problem. We do not want to install our integration code as open code, but we also need to allow some customers to tweak the integration as to handle certain specific requirement that are unique and can't be implemented in our standard code.
Kind regards
/Simon
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