External functions
On this page, you'll find details on how to call functions designed for external use.
If you need access to additional Collection Management functions, please create a ticket in our support system describing your requirements and specifying the desired function.
Suggest Collections with a filter on Customers.
Example on how to call the function
CollJnlLine."Journal Template Name" := 'COLLECTION';
CollJnlLine."Journal Batch Name" := 'BS-FI';
CollJnlLine."Account Type" := CollJnlLine."Account Type"::Customer;
CollJnlLine.SETFILTER("Account No.",'%1..%2','10000','20000');
RunSuggestCollections.RUN(CollJnlLine);
Attatched Documents to collections
Example on how to call the function
AttDoc.SETRANGE("Journal Template Name",JnlTemplateName);
AttDoc.SETRANGE("Journal Batch Name",JnlBatchName);
AttDoc.SETRANGE("Journal Line No.", LineNo);
AttDoc.ImportDocExternal(MyInStream,'FileName.pdf');