Codeunit "Purchase Post via Job Queue"

ID 98
Namespace: Microsoft.Purchases.Posting

Properties

Name Value
TableNo Table System.Threading."Job Queue Entry"

Methods

EnqueuePurchDoc

procedure EnqueuePurchDoc(var PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

EnqueuePurchDocWithUI

procedure EnqueuePurchDocWithUI(var PurchHeader: Record "Purchase Header", WithUI: Boolean)

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
WithUI Boolean

CancelQueueEntry

procedure CancelQueueEntry(var PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

Events

OnBeforeEnqueuePurchDoc

[IntegrationEvent(False,False)]
local procedure OnBeforeEnqueuePurchDoc(var PurchaseHeader: Record "Purchase Header", var Handled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
Handled Boolean

OnBeforeReleasePurchDoc

[IntegrationEvent(False,False)]
local procedure OnBeforeReleasePurchDoc(var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

OnBeforeSetJobQueueStatus

[IntegrationEvent(False,False)]
local procedure OnBeforeSetJobQueueStatus(PurchaseHeader: Record "Purchase Header", NewJobQueueStatus: Option, JobQueueEntry: Record "Job Queue Entry")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
NewJobQueueStatus Option
JobQueueEntry Table System.Threading."Job Queue Entry"

OnEnqueueJobEntryOnBeforeRunJobQueueEnqueue

[IntegrationEvent(False,False)]
local procedure OnEnqueueJobEntryOnBeforeRunJobQueueEnqueue(PurchaseHeader: Record "Purchase Header", var JobQueueEntry: Record "Job Queue Entry")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
JobQueueEntry Table System.Threading."Job Queue Entry"

OnBeforeBatchProcessingErrorReset

[IntegrationEvent(False,False)]
local procedure OnBeforeBatchProcessingErrorReset(var JobQueueEntry: Record "Job Queue Entry", var IsHandled: Boolean)

Parameters

Name Type Description
JobQueueEntry Table System.Threading."Job Queue Entry"
IsHandled Boolean

See also