Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to raise an event?

(0) ShareShare
ReportReport
Posted on by 30

Hello.

I created a costume field called EORI that exists in both Customer and Sales Header. When I edit the value in the Sales Invoice, the value should update in the Customer. The code works perfect when added directly in the OnValidate, but it doesn't seem to work when I try using it in an Event. Am I raising the event wrong?

salesinvoice.PNG

.

condeunite.PNG

  • Something Profile Picture
    30 on at
    RE: How to raise an event?

    Hello. Thank you for your reply. However, the code still doesn't work even after I did the changed you suggested.

  • Suggested answer
    YUN ZHU Profile Picture
    83,142 Super User 2025 Season 1 on at
    RE: How to raise an event?

    Hi, Why not use Page trigger events directly.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-event-types#PageEvents

    pastedimage1636934124551v1.png

    Hope this will help.

    Thanks.

    ZHU

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 944

#2
YUN ZHU Profile Picture

YUN ZHU 843 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 602

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans