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.
| Function Description: Enables to call Suggest Collections with a filter on Customer.  | 
|---|
| Function Name: CCM Run Suggest Collections | 
| Table: 6052660 | 
| Published Version: 26.00.00 / 26.0.0.0 | 
| Information: Call this function to create lines in the Collection Journal. Filter options include: - "Account No." ("Document Type" must be Customer)  | 
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
| Function Description: Enables the attachment of external documents from Azure Blob Storage to lines created in the Collection Journal.  | 
|---|
| Function Name: CCM Attached Documents | 
| Table: 6052659 | 
| Parameters: ImportDocExternal(VAR NVInStream : InStream;FileName : Text) | 
| Published Version: 9.00.00 / 9.0.0.0 | 
| Information: When creating an Attached Document record, a filter must be applied to indicate its origin. The specified filter values will be applied to the new Attached Document record. Filter options include: - "Sales Header No." - "Document Type" - "Sales Invoice Header No." - "Sales Credit Memo Header No." - "Journal Template Name" - "Journal Batch Name" - "Journal Line No." - "Coll. Entry No." - "Cust. Ledger Entry No." Notice: - An INSERT(TRUE); action occurs on Attached Document at the end of ImportBLOB. - Maximum attached document size: CollSysMethod."Max. Att. Document Size". - Valid attached document extensions: CollSysMethod."Valid Att. Document Extensions". - Maximum filename length is 50.  | 
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');