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.