Event Publishers for Document Capture 2021 R2 (8.00)

The following event publishers are included in Continia Document Capture 2021 R2 (8.00):

Table 6085580 CDC Template Field

Event nameOnBeforeClone
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersFromCompany: Text[30]
FromField: Record "CDC Template Field"
ToTemplate: Record "CDC Template"
CreatedFromMasterTemplate: Boolean
var Handled: Boolean
From version8.0.0.0

Table 6085590 CDC Document

Event nameOnBeforeRegisterHideErrors
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var DocIsRegistered: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterTestStatus
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
From version8.1.0.0

Table 6085596 CDC Temp. Document Line

Event nameOnBeforeInsertMatchSpecification
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar DocumentLine: Record "CDC Temp. Document Line"
PurchDocMatch: Record "CDC Purch. Doc. Match"
var MatchSpec: Record "CDC Purch. Doc. Match Spec."
From version8.0.0.0

Table 6085767 CDC Purchase Header Info.

Event nameOnBeforeUpdateApprvlFlowCode
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchHeader: Record "Purchase Header"
NewCode: Code[10]
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeIsApprovalFlowVisible
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Handled: Boolean
From version8.0.0.0

Page 6085593 CDC Doc. Capture Client Addin

Event nameOnAfterLineUpdateFieldValue
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parameters"Page": Record "CDC Document Page"
var "Field": Record "CDC Template Field"
Top: Integer
Left: Integer
Bottom: Integer
Right: Integer
LineNo: Integer
Word: Text[1024]
From version8.0.0.0
Event nameOnBeforeCaptureEnded
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPageNo: Integer
"Area": Code[20]
FieldName: Text[1024]
LineNo: Integer
IsValue: Boolean
Top: Integer
Left: Integer
Bottom: Integer
Right: Integer
var Handled: Boolean
From version8.0.0.0

Page 6085600 CDC Document List With Image

Event nameOnBeforeSetSourceNoNameVisibility
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersCurrentDocCategory: Code[20]
HasSourceTableNo: Boolean
var IsSourceNoNameVisible: Boolean
var IsHandled: Boolean
From version8.1.0.0
Event nameOnUpdateListOnBeforeCurrPageUpdate
Event typeIntegrationEvent(IncludeSender : true, GlobalVarAccess : false)
ParametersCurrentDocCategory: Code[20]
From version8.1.0.0
Event nameOnBeforeSetEditableFromParent
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Rec: Record "CDC Document"
var AllowEdit: Boolean
From version8.1.0.0
Event nameOnAfterGetSource
Event typeIntegrationEvent(IncludeSender : true, GlobalVarAccess : false)
Parametersvar Rec: Record "CDC Document"
var SourceID: Text[250]
var SourceName: Text[1024]
From version8.1.0.0
Event nameOnPageFindRecord
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Rec: Record "CDC Document"
CurrentDocCategory: Code[20]
Which: Text
var Found: Boolean
var IsHandled: Boolean
From version8.2.0.0
Event nameOnPageNextRecord
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Rec: Record "CDC Document"
CurrentDocCategory: Code[20]
Steps: Integer
var NextStep: Integer
var IsHandled: Boolean
From version8.2.0.0

Page 6085759 CDC Document Files Factbox

Event nameFileCopyCompleted
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar TempFile: Record "CDC Temp File"
var Document: Record "CDC Document"
From version8.0.0.0

Codeunit 6085575 CDC Capture Engine

Event nameOnBeforeRunLineCaptureCodeunit
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeCaptureField2
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
PageNo: Integer
var "Field": Record "CDC Template Field"
UpdateFieldCaption: Boolean
var FieldCaption: Record "CDC Template Field Caption"
var Handled: Boolean
var Word: Text[1024]
From version8.0.0.0
Event nameOnAfterCaptureField2
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
PageNo: Integer
var "Field": Record "CDC Template Field"
UpdateFieldCaption: Boolean
var FieldCaption: Record "CDC Template Field Caption"
var Handled: Boolean
var Word: Text[1024]
From version8.0.0.0
Event nameOnBeforeBufferWords
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocumentNo: Code[20]
PageNo: Integer
var Words: Record "CDC Document Word"
var GlobalWords: Record "CDC Document Word"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeFindDocumentSource
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var IsHandled: Boolean
From version8.2.0.0
Event nameOnAfterFindDocumentSource
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
From version8.2.0.0
Event nameOnBeforeAfterCapture
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var IsHandled: Boolean
From version8.2.0.0
Event nameOnBeforeValidateDocument
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var IsHandled: Boolean
From version8.2.0.0
Event nameOnBeforeAutoDelegateDocument
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var IsHandled: Boolean
From version8.2.0.0

Codeunit 6085576 CDC Capture Management

Event nameOnBeforeUpdateFieldValue
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocumentNo: Code[20]
PageNo: Integer
LineNo: Integer
var "Field": Record "CDC Template Field"
Word: Text[1024]
Manual: Boolean
UpdatedByUser: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterUpdateFieldValue
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocumentNo: Code[20]
PageNo: Integer
LineNo: Integer
var "Field": Record "CDC Template Field"
Word: Text[1024]
Manual: Boolean
UpdatedByUser: Boolean
From version8.0.0.0
Event nameOnBeforeApplyTranslationToWord
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar "Field": Record "CDC Template Field"
Word: Text[1024]
var Handled: Boolean
var ResultWord: Text[1024]
From version8.0.0.0
Event nameOnAfterApplyTranslationToWord
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar "Field": Record "CDC Template Field"
var Word: Text[1024]
From version8.0.0.0
Event nameOnCaseElseTransferDestFields
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersValue: Record "CDC Document Value"
FieldRef: FieldRef
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeCreateXmlAttachment
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var XmlDoc: Codeunit "CSC XML Document"
var AttachmentXmlNode: Codeunit "CSC XML Node"
var AttachmentFilename: Text[1024]
From version8.1.0.0
Event nameOnBeforeUpdateFieldValueCapture
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocumentNo: Code[20]
PageNo: Integer
LineNo: Integer
var "Field": Record "CDC Template Field"
var Word: Text[1024]
Manual: Boolean
UpdatedByUser: Boolean
var Handled: Boolean
From version8.2.0.0

Codeunit 6085579 CDC Doc. - Search Word Ident.

Event nameOnBeforeOnRun
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0

Codeunit 6085602 CDC Document Attachment Mgt.

Event nameOnBeforeCreateTempDocumentList
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar TempDoc: Record "CDC Temp. Document"
RecID: RecordID
CreatedDocTableNo: Integer
CreatedDocSubtype: Integer
CreatedDocNo: Code[20]
CreatedDocRefNo: Integer
ShowAllDocs: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterCreateTempDocumentList
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar TempDoc: Record "CDC Temp. Document"
RecID: RecordID
CreatedDocTableNo: Integer
CreatedDocSubtype: Integer
CreatedDocNo: Code[20]
CreatedDocRefNo: Integer
ShowAllDocs: Boolean
From version8.0.0.0
Event nameOnBeforeCreateTempDocListFromNavigate
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar TempDoc: Record "CDC Temp. Document"
PostingDate: Date
DocNo: Code[250]
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterCreateTempDocListFromNavigate
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar TempDoc: Record "CDC Temp. Document"
PostingDate: Date
DocNo: Code[250]
From version8.0.0.0
Event nameOnBeforeEditDocumentFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterEditDocumentFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
From version8.0.0.0
Event nameOnBeforeDeleteDocumentFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
var ReturnValue: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterDeleteDocumentFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
From version8.0.0.0
Event nameOnBeforeModifyDocumentFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
var ReturnValue: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterModifyDocumentFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
From version8.0.0.0
Event nameOnBeforeShowDocumentCard
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
var ReturnValue: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterShowDocumentCard
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersTempDoc: Record "CDC Temp. Document"
From version8.0.0.0
Event nameOnBeforeCreateDocument
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
RecID: RecordID
CreatedDocTableNo: Integer
CreatedDocSubtype: Integer
CreatedDocNo: Code[20]
CreatedDocRefNo: Integer
DocCat: Code[20]
NewDescription: Text[1024]
NewExtension: Text[20]
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterCreateDocument
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
RecID: RecordID
CreatedDocTableNo: Integer
CreatedDocSubtype: Integer
CreatedDocNo: Code[20]
CreatedDocRefNo: Integer
DocCat: Code[20]
NewDescription: Text[1024]
NewExtension: Text[20]
From version8.0.0.0

Codeunit 6085702 CDC Purch. Doc. - Identificat.

Event nameOnAfterFindVendorBeforeModify
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var "Field": Record "CDC Template Field"
var FieldCaption: Record "CDC Template Field Caption"
var VatRegNo: Code[20]
var FoundVendor: Record Vendor
var Found: Boolean
From version8.0.0.0

Codeunit 6085703 CDC Purch. - Full Capture

Event nameOnAfterFullCapture
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
From version8.0.0.0
Event nameOnBeforeCalculateDueDate
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeAdjustMissingQty
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeAdjustMissingFields
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0

Codeunit 6085704 CDC Purch. - Line Validation

Event nameOnBeforeLineValidation
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar TempDocumentLine: Record "CDC Temp. Document Line"
Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0

Codeunit 6085705 CDC Purch. - Validation

Event nameOnBeforeBuildTempLinesTable
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var DocumentLines: Record "CDC Temp. Document Line" temporary
var IsValid: Boolean
var LinesHandled: Boolean
From version8.0.0.0
Event nameOnBeforeMatchValidation
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var DocumentLine: Record "CDC Temp. Document Line" temporary
var IsValid: Boolean
From version8.0.0.0
Event nameOnBeforeGetDocumentDate
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var DueDate: Date
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeTotalAmountNegCheck
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var IsValid: Boolean
var Handled: Boolean
From version8.0.0.0

Codeunit 6085706 CDC Purch. - Register

Event nameOnBeforeGetOrderNoUpdateOrderWithMatch
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchDocMatch: Record "CDC Purch. Doc. Match"
Template: Record "CDC Template"
var OrderNo: Code[100]
IsInvoice: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeCreatePurchHeaderCopyHeaderDim
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchDocMatch: Record "CDC Purch. Doc. Match"
var PurchHeader: Record "Purchase Header"
PurchaserCode: Code[20]
IsInvoice: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterCreateWithoutMatchModifyPurchLine
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var PurchLine: Record "Purchase Line"
DocumentLineNo: Integer
From version8.0.0.0
Event nameOnAfterCreateWithoutMatchLineTrans
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchLine: Record "Purchase Line"
LineTrans: Record "CDC Data Translation"
From version8.0.0.0
Event nameOnBeforeCreateWithMatchCreatePurchLine
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var PurchDocMatch: Record "CDC Purch. Doc. Match"
PurchHeader: Record "Purchase Header"
var PurchLine: Record "Purchase Line"
var NextLineNo: Integer
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterModifyPurchLineCreatePurchLine
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var PurchLine: Record "Purchase Line"
From version8.0.0.0
Event nameOnAfterModifyPurchLineCreatePurchLineAmountDistribution
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var PurchLine: Record "Purchase Line"
IsHeadingLine: Boolean
From version8.0.0.0
Event nameOnAfterCreatePurchLineLineTrans
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchLine: Record "Purchase Line"
DataTransl: Record "CDC Data Translation"
From version8.0.0.0
Event nameOnAfterTransferPurchHeader
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Document: Record "CDC Document"
From version8.0.0.0
Event nameOnBeforePurchHeaderInsert
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var PurchHeader: Record "Purchase Header"
From version8.0.0.0
Event nameOnAfterRegister
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
From version8.0.0.0
Event nameOnAfterPerformStep1
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var PurchaseHeader: Record "Purchase Header"
From version8.0.0.0
Event nameOnBeforePerformStep2
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Template: Record "CDC Template"
var PurchHeader: Record "Purchase Header"
IsInvoice: Boolean
var SkipNextStep: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeShowAfterRegister
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterTransferPurchLine
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchLine: Record "Purchase Line"
Document: Record "CDC Document"
DocumentLineNo: Integer
From version8.0.0.0
Event nameOnAfterCreateWithoutMatchSetAccountRequired
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var DocumentLine: Record "CDC Temp. Document Line" temporary
var AccountRequired: Boolean
From version8.0.0.0
Event nameOnBeforeCreateWithMatchGetPurchLine
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchDocMatch: Record "CDC Purch. Doc. Match"
var PurchaseLine: Record "Purchase Line"
var NextLineNo: Integer
var PurchLineGetHandled: Boolean
From version8.0.0.0
Event nameOnAfterCreatePurchHeaderWithoutMatch
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var PurchHeader: Record "Purchase Header"
IsInvoice: Boolean
From version8.1.0.0
Event nameOnAfterCreatePurchHeaderWithMatch
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var PurchHeader: Record "Purchase Header"
IsInvoice: Boolean
From version8.1.0.0

Codeunit 6085709 CDC Purch. Doc. - Management

Event nameOnBeforeAutoMatchSetDocumentMatchStatus
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
OrderNoFilter: Code[250]
var Matched: Boolean
From version8.0.0.0
Event nameOnBeforeAutoMatchNoLinesTryMatchAmounts
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
Template: Record "CDC Template"
PurchDocType: Option Receipt "Return Shipment","Order","Return Order"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeIsDocMatched
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var IsDocMatched: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeGetDocMatchedAmount
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var MatchedAmount: Decimal
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeGetLineAmount
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
LineNo: Integer
var ReturnValue: Decimal
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeGetLineTranslAccountNo
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Template: Record "CDC Template"
var Document: Record "CDC Document"
LineNo: Integer
var DataTrans: Record "CDC Data Translation"
TranslateFrom: Code[150]
var Handled: Boolean
var FoundTranslation: Boolean
From version8.0.0.0
Event nameOnBeforeCheckMatchToWithTrack
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchOrderLine: Record "Purchase Line"
MatchedToDocType: Option Receipt "Return Shipment","Order","Return Order"
ShowError: Boolean
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnAfterGetIsInvoice
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var "Field": Record "CDC Template Field"
var IsInvoice: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeSplitPurchOrderLine
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchaseLine: Record "Purchase Line"
var AmountOnNewLine: Decimal
var DescriptionOnNewLine: Text[50]
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeInsertPurchDocMatch
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchDocMatch: Record "CDC Purch. Doc. Match"
DocNo: Code[20]
DocLineNo: Integer
PurchDocType: Option Receipt "Return Shipment","Order","Return Order"
PurchDocNo: Code[20]
PurchLineNo: Integer
var AvailMatchQty: Decimal
var DirectUnitCost: Decimal
var LineDiscountPct: Decimal
UpdateMatchTracking: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeGetDocLineMatchedQty
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar DocumentLine: Record "CDC Temp. Document Line"
var MatchQty: Decimal
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterSetFiltersAutoMatchOpenPurchDoc
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
DocumentLine: Record "CDC Temp. Document Line" temporary
Template: Record "CDC Template"
OrderNo: Code[20]
PurchDocType: Option Receipt "Return Shipment","Order","Return Order"
var PurchLine: Record "Purchase Line"
var Stop: Boolean
From version8.0.0.0
Event nameOnAfterCalcAvailMatchQtyAutoMatchOpenPurchDoc
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
DocumentLine: Record "CDC Temp. Document Line" temporary
Template: Record "CDC Template"
PurchLine: Record "Purchase Line"
var AvailableMatchQty: Decimal
From version8.0.0.0
Event nameOnAfterSetFilterAutoMatchReceipt
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
DocumentLine: Record "CDC Temp. Document Line" temporary
Template: Record "CDC Template"
OrderNo: Code[20]
var PurchRcptLine: Record "Purch. Rcpt. Line"
var Stop: Boolean
From version8.0.0.0
Event nameOnAfterCalcAvailMatchQtyAutoMatchReceipt
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
DocumentLine: Record "CDC Temp. Document Line" temporary
Template: Record "CDC Template"
PurchRcptLine: Record "Purch. Rcpt. Line"
var AvailableMatchQty: Decimal
From version8.0.0.0
Event nameOnAfterSetFilterAutoMatchReturnShpt
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
DocumentLine: Record "CDC Temp. Document Line" temporary
Template: Record "CDC Template"
OrderNo: Code[20]
var ReturnShptLine: Record "Return Shipment Line"
var Stop: Boolean
From version8.0.0.0
Event nameOnAfterCalcAvailMatchQtyAutoMatchReturnShpt
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
DocumentLine: Record "CDC Temp. Document Line" temporary
Template: Record "CDC Template"
ReturnShptLine: Record "Return Shipment Line"
var AvailableMatchQty: Decimal
From version8.0.0.0
Event nameOnBeforeInsertMatchSpecByPurchDocMatchShowMatchedSpec
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchDocType: Option Receipt "Return Shipment","Order","Return Order"
PurchDocNo: Code[20]
PurchLineNo: Integer
PurchDocMatch: Record "CDC Purch. Doc. Match"
var MatchSpec: Record "CDC Purch. Doc. Match Spec."
From version8.0.0.0
Event nameOnAfterAutoMatchGetOurDocumentNo
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var OurDocumentNo: Code[250]
From version8.1.0.0
Event nameOnAfterAutoMatchSetOrderNoFilter
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var OrderNoFilter: Code[1024]
From version8.1.0.0

Codeunit 6085712 CDC Purch. Approval E-Mail

Event nameOnAfterApplyApprEntryFilters
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprEntry: Record "Approval Entry"
From version8.2.0.0

Codeunit 6085716 CDC Purch./Sales - Line Capt.

Event nameOnBeforeCaptureTablePageFind
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar DocumentPage: Record "CDC Document Page"
Document: Record "CDC Document"
From version8.0.0.0
Event nameOnAfterCaptureTableCell
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Template: Record "CDC Template"
var Document: Record "CDC Document"
var "Page": Record "CDC Document Page"
var "Field": Record "CDC Template Field"
LineNo: Integer
Top: Integer
Left: Integer
Bottom: Integer
Right: Integer
NewBottom: Integer
From version8.0.0.0

Codeunit 6085720 CDC Purch. Alloc.-Post

Event nameOnAfterDateNoAllowed
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPostingDate: Date
var DateIsNotAllowed: Boolean
From version8.0.0.0
ObsoleteReplaced by IsUserAssignedRole in CSC Permission Mgt
Event nameOnBeforePostGenJnlLineLoop
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar GenJnlLine: Record "Gen. Journal Line"
var PurchAllocHeader: Record "CDC Purch. Allocation Header"
var PurchAllocLine: Record "CDC Purch. Allocation Line"
From version8.0.0.0
Event nameOnBeforePostGenJnlBalAcc
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar GenJnlLine: Record "Gen. Journal Line"
var PurchAllocHeader: Record "CDC Purch. Allocation Header"
From version8.0.0.0

Codeunit 6085722 CDC Approval Management

Event nameOnAfterCreateFlowApprovalEntriesMakeApprovalEntry
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntryArgument: Record "Approval Entry"
AppvlFlowLine: Record "CDC Approval Flow Line"
From version8.0.0.0
Event nameOnBeforeCreatePurchApprovalRequest
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchHeader: Record "Purchase Header"
WorkflowStepInstanceID: Guid
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnBeforeOnAfterApprovalRequest
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeGetDelegateToAndMethod
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var Selection: Option Cancel,ApproveAndDelegate,DelegateWithoutApproval,DelegateAndSendBack
var NewUserID: Code[50]
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeAddApproverAfter
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeForceApproval
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
IsManual: Boolean
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnBeforeBuildApprvlEntryFindSharedApprvlEntry
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
From version8.0.0.0
Event nameOnBeforeUpdateApprvlEntryByApproverFindApprvlEntry
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
From version8.0.0.0
Event nameOnBeforeUpdateApprovalEntry
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeUpdateApprvlEntryIfCanAppEntry
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnBeforePurchDocSubmittingForApproval
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnBeforeCheckPurchApprovalRequest
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var PurchHeader: Record "Purchase Header"
ShowConfirmation: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeAutoApproveOrdersNotFullyApproved
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Document: Record "CDC Document"
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnBeforeCheckCanChangeImportedAmount
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchHeader: Record "Purchase Header"
ShowError: Boolean
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnBeforeFilterPurchHeaderForApprover
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocType: Integer
ApproverID: Code[50]
var PurchHeader: Record "Purchase Header"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforePutOnHold
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeShowPurchDocFromApprEntry
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforePurchDocSubmittedForApproval
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var ReturnValue: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeCreateFourEyeApp
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchHeader: Record "Purchase Header"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeAutoArchive
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var SuspendAutoArchive: Boolean
From version8.0.0.0
Event nameOnBeforeSendApprovalEmails
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar IsHandled: Boolean
From version8.2.0.0
Event nameOnAfterMakeApprovalEntry
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
From version8.2.0.0
Event nameOnBeforeRaiseErrorIfInvAdvApprFlowCode
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Handled: Boolean
From version8.2.0.0

Codeunit 6085730 CDC Purch. - Val. Purch. Ord.

Event nameOnAfterValidatePurchaseOrder
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
From version8.0.0.0

Codeunit 6085746 CDC Advanced Appvl. Management

Event nameOnBeforeRaiseErrorIfNextApprIDBlank
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var WorkflowStepInstanceID: Guid
var ApprovalEntry: Record "Approval Entry"
var NextApproverID: Code[50]
From version8.2.0.0
Event nameOnAfterUpdateDtldApprEntries
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var PurchHeader: Record "Purchase Header"
var AppvlGroup: Record "CDC Approval Group"
var ApprovalGroupUserID: Code[50]
var CurrentUser: Code[50]
var NextApproverID: Code[50]
var ActionToPerform: Option Approve,FindNextApprover
From version8.2.0.0

Codeunit 6085762 CDC Purch.-Get Order

Event nameOnAfterInsertInvLineFromOrderLineValidateQuantity
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchInvLine: Record "Purchase Line"
var PurchOrderLine: Record "Purchase Line"
MatchedQuantity: Decimal
From version8.0.0.0

Codeunit 6085770 CDC Sales - Management

Event nameOnBeforeGetDocType
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var DocType: Integer
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeGetLineTranslAccountNo
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Template: Record "CDC Template"
var Document: Record "CDC Document"
LineNo: Integer
var DataTrans: Record "CDC Data Translation"
TranslateFrom: Code[150]
var Handled: Boolean
var FoundTranslation: Boolean
From version8.1.0.0

Codeunit 6085774 CDC Sales - Line Validation

Event nameOnAfterRun
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar TempDocumentLine: Record "CDC Temp. Document Line"
From version8.0.0.0

Codeunit 6085776 CDC Sales - Register

Event nameOnBeforeCreateSalesHeaderInsert
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var SalesHeader: Record "Sales Header"
From version8.0.0.0
Event nameOnAfterCreateSalesHeader
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
SalesHeader: Record "Sales Header"
From version8.0.0.0

Codeunit 6085778 CDC Sales - Show Reg. Doc.

Event nameOnRunOnSalesDocumentTypeCaseElse
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar DocNo: Code[20]
var DocDate: Date
From version8.0.0.0

Codeunit 6085781 CDC Continia User Mgt.

Event nameOnAfterRenameRecord
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar RecRef: RecordRef
TableNo: Integer
NumberOfPrimaryKeyFields: Integer
UserName: Code[50]
Company: Text[30]
From version8.0.0.0
Event nameOnBeforeRenameContiniaUser
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersOldUserName: Code[50]
NewUserName: Code[50]
From version8.0.0.0

Codeunit 6085790 CDC Approvals Bridge

Event nameOnBeforeSendPurchDocApprovalRequest
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeForward
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Handled: Boolean
From version8.0.0.0
Event nameOnAfterRejectApprovalRequests
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar ApprovalEntry: Record "Approval Entry"
var PurchHeader: Record "Purchase Header"
From version8.0.0.0
Event nameOnBeforeCancelApprovalRequest
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchHeader: Record "Purchase Header"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeFilterPurchAppWorkflows
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocType: Integer
var Workflow: Record Workflow
FilterType: Option "Only DC","Only Standard",All
var FilterString: Text[1024]
var ReturnValue: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeIsPurchForceApprEnabledDocType
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocType: Integer
var Handled: Boolean
var ReturnValue: Boolean
From version8.0.0.0
Event nameOnAfterSetApprovalButtons
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchHeader: Record "Purchase Header"
var EnableForceAppr: Boolean
var EnableSendAppr: Boolean
var EnableCancelApprov: Boolean
var EnableApprove: Boolean
var EnableReject: Boolean
var EnableForward: Boolean
var EnableOnHold: Boolean
var ShowApprFactBox: Boolean
From version8.0.0.0
Event nameOnSendDocumentForApproval
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar Document: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeApproveApprovalRequest
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersApprovalEntry: Record "Approval Entry"
var Handled: Boolean
From version8.1.0.0

Codeunit 6085808 CDC Document No. Series Mgt.

Event nameOnBeforeGetMainNoseriesCode
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersDocument: Record "CDC Document"
var MainNoseriesCode: Code[20]
var Handled: Boolean
From version8.0.0.0

Codeunit 6085921 CDC Purchase Line Subscr.

Event nameOnBeforeResetUnitCostOnAfterValidateNo
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar PurchaseLine: Record "Purchase Line"
var xPurchaseLine: Record "Purchase Line"
var Suspend: Boolean
From version8.0.0.0

Codeunit 6086001 CDC Approval Functions (WS)

Event nameOnBeforeCopyDocumentLine
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersLCID: Integer
DocumentType: Integer
DocumentNo: Code[20]
LineNo: Integer
var NewLineNo: Integer
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeReject
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersLCID: Integer
MenuCode: Code[20]
SubMenuCode: Code[20]
TableID: Integer
DocumentType: Integer
DocumentNo: Code[20]
ApproverId: Code[50]
ReasonCode: Code[10]
var NextTableID: Integer
var NextDocumentType: Integer
var NextDocumentNo: Code[20]
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforeForward
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersLCID: Integer
MenuCode: Code[20]
SubMenuCode: Code[20]
TableID: Integer
DocumentType: Integer
DocumentNo: Code[20]
ApproverId: Code[50]
DelegateToUserId: Code[50]
DelegateAction: Integer
var NextTableID: Integer
var NextDocumentType: Integer
var NextDocumentNo: Code[20]
var Handled: Boolean
From version8.0.0.0
Event nameOnBeforePutOnHold
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersLCID: Integer
TableID: Integer
DocumentType: Integer
DocumentNo: Code[20]
ApproverId: Code[50]
ReasonCode: Code[10]
From version8.0.0.0
Event nameOnBeforePutOnHoldHandled
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersLCID: Integer
TableID: Integer
DocumentType: Integer
DocumentNo: Code[20]
ApproverId: Code[50]
ReasonCode: Code[10]
var IsHandled: Boolean
From version8.1.0.0

Codeunit 6086004 CDC Web Job and Dim. Mgnt.

Event nameOnBeforeGetPurchLineTaskInfo
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersPurchLine: Record "Purchase Line"
var JobTaskNo: Code[20]
var JobTaskDesc: Text[100]
var IsHandled: Boolean
From version8.1.0.0
Event nameOnAfterValidateJobTaskNo
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersJobTaskNo: Code[20]
var PurchLine: Record "Purchase Line"
From version8.1.0.0
Event nameOnBeforeValidateJobTaskNo
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersJobTaskNo: Code[20]
var PurchLine: Record "Purchase Line"
var IsHandled: Boolean
From version8.2.0.0

Codeunit 6086217 CDC UTS Validation

Event nameOnBeforeFindRelatedDocument
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar RelatedDocument: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0

Codeunit 6086218 CDC UTS - Register

Event nameOnBeforeFindRelatedDocument
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
Parametersvar RelatedDocument: Record "CDC Document"
var Handled: Boolean
From version8.0.0.0

Codeunit 6085640 CDC Doc. File Events

OverviewAll events implement the Handled pattern.

The events are invoked before standard Document Capture file logic is used. If Handled is set, the value of the Result variable will be used. If Handled is not set, the methods will use a document storage type as set up on the Document Capture Setup card.

FileType is an option value which can be copied from the CDC Document File Interface codeunit and compared against FileType methods, such as TiffFileType and PdfFileType.

Company is passed to all events and must be used to separate files, as the FileName argument is only unique within each company.

FileName will always be based on Document No. and will be the primary identifier together with Company.
Event nameOnHasFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersFileName: Text[1024]
Company: Text[50]
DocumentNo: Code[20]
FileType: Integer
var Result: Boolean
var Handled: Boolean
From version8.0.0.0
Event nameOnClearFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersFileName: Text[1024]
Company: Text[50]
DocumentNo: Code[20]
FileType: Integer
var Result: Boolean
var Handled: Boolean
DescriptionClear the file identified by FileName and CompanyName if previously stored.
From version8.0.0.0
Event nameOnGetFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersFileName: Text[1024]
Company: Text[50]
DocumentNo: Code[20]
FileType: Integer
var TempFile: TEMPORARY Record "CDC Temp File"
var Result: Boolean
var Handled: Boolean
DescriptionThe binary content of the file requested, identified by FileName and Company, must be returned in the Data field in the TempFile Record argument.
From version8.0.0.0
Event nameOnSetFile
Event typeIntegrationEvent(IncludeSender : false, GlobalVarAccess : false)
ParametersFileName: Text[1024]
Company: Text[50]
DocumentNo: Code[20]
FileType: Integer
var TempFile: TEMPORARY Record "CDC Temp File"
var Result: Boolean
var Handled: Boolean
DescriptionThe binary content of the Data field in the TempFile argument must be stored if the Handled value is set. We recommend using FileName and Company as identifiers for the file location.
From version8.0.0.0