Breaking news from around the world
Get the Bing + MSN extension
Check out the latest Business Central updates!Learn about the key capabilities and features of Dynamics 365 Business Central and experience some of the new features.
Download overview guide | Watch Business Central video
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
We have a custom Code unit where we are using the Custom Function in a Slandered Code unit 5760 Whse.- Post Shipment.
Below is the Custom Functions of Whse.- post shipment Cu.
We are Calling these two Customs functions as below in a custom CU.
In Event Subscriber how can we write code, as the First Custom Function has Standard Variable CounterSourceDocOK and CounterSourceDocTotal,also we have checked this CU 5763 in Business central and not have any Events in having these two variable as Parameter, so that we can subscribe and write our Logic.
Any Assistance will be helpful.
Thank You in Advance.
As said many times here, on SaaS you can only subscribe to events raised by the standard application, you cannot "inject" code into a standard codeunit or a standard object. Your GetResultMessageWeb function must be an event subscriber of something in the Whse.- Post Shipment codeunit. Only in this way you can receive the global variables you need. Thenfrom this event subscriber you can call other custom codeunits as per your needs. No other way.
If you cannot do that, you're forced to rethink your code. SaaS is different...
Business Applications communities