Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

How to get access to data inside codeunit what is parameter in EventSubscriber

Posted on by 50
Hi, question from junior. 
1) Here event were i want to add my code. It has 6 parameters, include important for me TempWhseActivLine: Record /Warehouse Activity Line/
 
2)After doing EventSubscriber automatically added one more parameter var Sender what is codeunit where this event is.
 
3)Now to problem. var TempWhseActivLine is empty i can see it when debugging. But inside Sender now i can see my /Source No/. I can see it but i cant take it. There are no get to fetch it and other simple solutions hasn't worked.
Any ideas how to get data from sender?
 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans