web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

External Business Event not working

(0) ShareShare
ReportReport
Posted on by 291
Hi all.
I created a very simple external business event and I can't manage to make it work.
The code is like this one:
 
enumextension 60100 JJMcEventCategoryExt extends EventCategory
{
    value(60100; JJMcInsert) { }
    value(60101; JJMcModify) { }
    value(60102; JJMcDelete) { }
}
codeunit 60100 JJMcExternalBusinessEvents
{
    procedure onAfterModifyCustomers(systemId: Guid; no: Code[20]; name: Text[250])
    begin
        onAfterModifyCustomer(SystemId, no, name);
    end;
 
    [ExternalBusinessEvent('OnAfterModifyCustomer', 'Descripción breve', 'Descripción ampliada', EventCategory::JJMcModify, '1.0')]
    local procedure onAfterModifyCustomer(systemId: Guid; no: Code[20]; name: Text[250])
    begin
    end;
}
tableextension 60100 JJMcCustomerExt extends Customer
{
    trigger OnAfterModify()
    var
        JJMcExternalBusinessEvents: Codeunit JJMcExternalBusinessEvents;
    begin
        JJMcExternalBusinessEvents.onAfterModifyCustomers(Rec.SystemId, Rec./No./, Rec.Name);
    end;
}
 
 
I verified all the different configurations on my instance regarding to External bussines events, and all of then are, apparently, ok:
 
PS C://WINDOWS//system32> Get-NAVServerConfiguration -ServerInstance BCDEMO -KeyName ExternalEventsEnabledServiceLevel
true
PS C://WINDOWS//system32> Get-NAVServerConfiguration -ServerInstance BCDEMO -KeyName ExternalEventsEnabledEnvironmentLevel
true
PS C://WINDOWS//system32> Get-NAVServerConfiguration -ServerInstance BCDEMO -KeyName ExternalEventsActivityLogRetentionDays
7
PS C://WINDOWS//system32> Get-NAVServerConfiguration -ServerInstance BCDEMO -KeyName ExternalEventsActivityLogCleanupBatchSize
50000
 
Am I missing anything to make it work?
 
Thank you ever so much in avdance.
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at
    External Business Event not working
    Have you followed all the instructions in this documentation including the integration to Dataverse?
     
  • Suggested answer
    JJMc Profile Picture
    291 on at
    External Business Event not working
    Thank you Inge for your anwer.
     
    Looking your suggestion I realized that the problem was not in my code. The problem was in the suscription to the external event.
    Althoug when you subscribe to one External Business Event, if this subscription is not ok, I missed one parameter, it tells you that the subscription was created successfuly, but it was not.
    I found the parameter missing and now it works.
     
    Thank you ever so much for your time.
     
    Kind regards

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans