Explore Dynamics 365 Business Central on Microsoft LearnDiscover features, benefits, and examples of Dynamics 365 Business Central in action in this short training module.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
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 and Operations TechTalks | Customer Engagement TechTalks | Talent 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