Event Hooks
On this page, you will find information for implementing Event Publishers to Collection Management.
If the need for other event points emerge, send us a request for new ones by creating a ticket in our support system.
Event Description: The event is published to alter the PDF templates that are to be applied to the mail notifications. | |
---|---|
Codeunit: 6052645 | |
Event Name: OnBeforePrintToFile | |
Event Type: Integration | |
Parameters: (CustLE : Record "Cust. Ledger Entry";VAR ReportID : Integer) | |
Published Version: 4.00.00 / 4.0.0.0 |
Example on how to utilize the event
[EventSubscriber(Codeunit,6052645,OnBeforePrintToFile)]
LOCAL PROCEDURE test@1160040000(CustLE@1160040000 : Record 21;VAR<br> ReportID@1160040001 : Integer)
BEGIN
CASE CustLE."Document Type" OF
CustLE."Document Type"::Invoice: ReportID := 206;
CustLE."Document Type"::"Credit Memo": ReportID := 207;
CustLE."Document Type"::Reminder: ReportID := 117;
END;
END;
Event Description: The event is published to alter the collection journal lines before they are inserted into the Collection Journal. The Collection Journal lines are based on invoices/credit memos. | |
---|---|
Report: 6052638 | |
Event Name: OnBeforeInsertColJnlLine | |
Event Type: Integration | |
Parameters: (VAR NewCollJnlLine : Record "Gen. Journal Line";CustLedgEntry : Record "Cust. Ledger Entry") | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the event
[EventSubscriber(Report,6052638,OnBeforeInsertCollJnlLine)]
LOCAL PROCEDURE test@1160040001(VAR NewCollJnlLine@1160040000 : Record 81;CustLedgEntry@1160040001 : Record 21);
BEGIN
IF CustLedgEntry."Customer No." = '10000' THEN
NewCollJnlLine.Description := 'Test tekst';
END;
Event Description: The event is published to alter the collection journal lines before they are inserted into the Collection Journal. The Collection Journal lines are based on reminders. | |
---|---|
Report: 6052638 | |
Event Name: OnBeforeInsertCollJnlLineReminder | |
Event Type: Integration | |
Parameters: (VAR NewCollJnlLine : Record "Gen. Journal Line";IssRemHeader : Record "Issued Reminder Header") | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the event
[EventSubscriber(Report,6052638,OnBeforeInsertCollJnlLineReminder)]
LOCAL PROCEDURE test2@1160040004(VAR NewCollJnlLine@1160040000 : Record 81;IssRemHeader@1160040001 : Record 297);
BEGIN
IF IssRemHeader."Customer No." = '10000' THEN
NewCollJnlLine.Description := 'Test rykker tekst';
END;
Event Description: The event is published to add notification lines at the end of the Collection Journal Line notification. | |
---|---|
Codeunit: 6052637 | |
Event Name: OnCreateAdvice | |
Event Type: Integration | |
Parameters: (CollJnlLine : Record "Gen. Journal Line";CollEntryNo : Integer;VAR AdvLineNo : Integer) | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the events
[EventSubscriber(Codeunit,6052637,OnCreateAdvice)]
LOCAL PROCEDURE AdviceTest@1160040000(CollJnlLine@1160040000 : Record 81;CollEntryNo@1160040001 : Integer;VAR AdvLineNo@1160040002 : Integer);
VAR
CollEntryAdvice@1160040004 : Record 6052648;
BEGIN
IF CollJnlLine."Account No." = '10000' THEN BEGIN
CollEntryAdvice.INIT;
CollEntryAdvice."Coll. Entry No." := CollEntryNo;
AdvLineNo += 10000;
CollEntryAdvice."Line No." := AdvLineNo;
CollEntryAdvice."Advice Description" := 'Test advisering';
CollEntryAdvice.INSERT;
AdvLineNo += 10000;
CollEntryAdvice."Line No." := AdvLineNo;
CollEntryAdvice."Advice Description" := 'Test advisering - linje 2';
CollEntryAdvice.INSERT;
END;
END;
Event Description: The event is published to modify the Gen. Journal Line created when using the function "Transfer to Cash receipt Jnl." from the Collection Import Journal. | |
---|---|
Codeunit: 6052648 | |
Event Name: OnAfterCreateCashReceipt | |
Event Type: Integration | |
Parameters: (VAR GenJnlLine : Record "Gen. Journal Line";CollImportJnlLine : Record "CCM Import Journal Line") | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the events
[EventSubscriber(Codeunit,6052648,OnAfterCreateCashReceipt)]
LOCAL PROCEDURE AfterCashReceiptTest@1160040002(VAR GenJnlLine@1160040000 : Record 81;CollImportJnlLine@1160040001 : Record 6052667);
BEGIN
IF GenJnlLine."Account No." = '10000' THEN BEGIN
GenJnlLine.Comment := 'Test';
END;
END;
Event Description: The event is published to modify the Coll. Entry when a line is created in Collection Journal. | |
---|---|
Codeunit: 6052647 | |
Event Name: OnAfterInsertEntry | |
Event Type: Integration | |
Parameters: (VAR CollEntry : Record "CCM Collection Entry";CollJnlLine : Record "Gen. Journal Line") | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the events
[EventSubscriber(Table,6052647,OnAfterInsertEntry)]
LOCAL PROCEDURE InsertEntryTest@1160040003(VAR CollEntry@1160040000 : Record 6052647;CollJnlLine@1160040001 : Record 81);
BEGIN
IF CollJnlLine."Account No." = '10000' THEN
CollEntry."E-Mail advice Sent" := TRUE;
END;
Event Description: The event is published to modify the Coll. Entry when the funcition ModifyEntry on Table CCM Coll. Entry is called. | |
---|---|
Codeunit: 6052647 | |
Event Name: OnAfterUpdateEntry | |
Event Type: Integration | |
Parameters: (VAR CollEntry : Record "CCM Collection Entry";CollJnlLine : Record "Gen. Journal Line") | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the events
[EventSubscriber(Table,6052647,OnAfterUpdateEntry)]
LOCAL PROCEDURE UpdateEntryTest@1160040005(VAR CollEntry@1160040000 : Record 6052647;CollJnlLine@1160040001 : Record 81);
BEGIN
IF CollJnlLine."Account No." = '10000' THEN
CollEntry."Recipient Email" := 'testmail@continia.dk';
END;
Event Description: The event is published to modify the Collection Agreements being created from the Agreement Export Journal. | |
---|---|
Codeunit: 6052692 | |
Event Name: ExportAgreementsCreateOnBeforeModifyAgree | |
Event Type: Integration | |
Parameters: (VAR CollAgree : Record "CCM Collection Agreement";AgreeJnlLine : Record "CCM Coll. Agreement Jnl. Line") | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the events
[EventSubscriber(Codeunit,6052692,ExportAgreementsCreateOnBeforeModifyAgree)]
LOCAL PROCEDURE ExportAgreementTest@1160040006(VAR CollAgree@1160040000 : Record 6052640;AgreeJnlLine@1160040001 : Record 6052654);
BEGIN
IF CollAgree."Customer No." = '10000' THEN
CollAgree.Description := 'Agreement export test'
END;
Event Description: The event is published to set your own value for the tag | |
---|---|
Codeunit: 6052692 | |
Event Name: ExportCollectionsSetDebtorCustomerNr | |
Event Type: Integration | |
Parameters: (CollJnlLine : Record "Gen. Journal Line";VAR DebtorCustomerNr : Code[30]) | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the events
[EventSubscriber(Codeunit,6052692,ExportCollectionsSetDebtorCustomerNr)]
LOCAL PROCEDURE SetDebtorCustomerNrTest@1160040007(CollJnlLine@1160040000 : Record 81;VAR DebtorCustomerNr@1160040001 : Code[30]);
BEGIN
DebtorCustomerNr := CollJnlLine."Contract No.";
END;
Event Description: The event is published to get the Coll. Journal Line after the line is exported to Nets BetalingsService. | |
---|---|
Codeunit: 6052692 | |
Event Name: ExportCollectionsOnAfterModify | |
Event Type: Integration | |
Parameters: (VAR CollJnlLine : Record "Gen. Journal Line") | |
Published Version: 5.00.00 / 5.0.0.0 |
Example on how to utilize the events
[EventSubscriber(Codeunit,6052692,ExportCollectionsOnAfterModifyCollJnlLine)]
LOCAL PROCEDURE GetCollJnlLineAferExportCollectionTest@1160040008(VAR CollJnlLine@1160040000 : Record 81);
BEGIN
CollJnlLine.Description := 'Exported';
CollJnlLine.MODIFY;
END;