Skip to content

KVSCCEvents#

Events#

OnBeforeCheck(Record KVSCCEntity, Boolean) :#

Summary: OnBeforeCheck is called before creating the request data and sending the request. You can use this event in order to manipulate the entity data by yourselves. If you want to break the standard processing, you can use (activate) the referenced "Handled" parameter in order to make the logic not process the check anymore.

[IntegrationEvent(true, false)]
procedure OnBeforeCheck(var entityVar: Record "KVSCCEntity"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnBeforeCheck', '', false, false)]
local procedure DoSomethingOnBeforeCheck(var entityVar: Record "KVSCCEntity"; var Handled: Boolean)
begin
end;

Parameters:

  • entityVar: Referenced Record of type KVSCCEntity. This record holds all the data that is used for the current check.
  • Handled: VAR Boolean Parameter to skip the standard processing.

OnAfterCheck(Record KVSCCEntity) :#

Summary: OnAfterCheck is called after handling the data request and modifying the entity. You can use this event in order to start an own processing logic based on the entity results.

[IntegrationEvent(true, false)]
procedure OnAfterCheck(var entityVar: Record "KVSCCEntity"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnAfterCheck', '', false, false)]
local procedure DoSomethingOnAfterCheck(var entityVar: Record "KVSCCEntity")
begin
end;

Parameters:

  • entityVar: Referenced Record of type KVSCCEntity. This record holds all the data (request and response) that is used for and returned by the current check.

OnBeforeSkipShippedInvoice(Record Sales Header, Boolean) :#

Summary: OnBeforeSkipShippedInvoice is called before the check if the invoice should be skipped.

[IntegrationEvent(false, false)]
procedure OnBeforeSkipShippedInvoice(SalesHeader: Record "Sales Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnBeforeSkipShippedInvoice', '', false, false)]
local procedure DoSomethingOnBeforeSkipShippedInvoice(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesHeader: Referenced Record of type "Sales Header". This record holds all the data that is used for the current check.
  • IsHandled: VAR Boolean Parameter to skip the standard processing

OnBeforeFieldErrorCheckOnPostSalesShipment(Record Sales Header, Boolean) :#

Summary: OnBeforeFieldErrorCheckOnPostSalesShpt is called before the standard field error check on posting a sales shipment. You can use this event in order to skip the standard field error check by setting the referenced "IsHandled" parameter to true.

[IntegrationEvent(false, false)]
procedure OnBeforeFieldErrorCheckOnPostSalesShipment(SalesHeader: Record "Sales Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnBeforeFieldErrorCheckOnPostSalesShipment', '', false, false)]
local procedure DoSomethingOnBeforeFieldErrorCheckOnPostSalesShipment(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesHeader: Record of type "Sales Header". This record holds all the data that is used for the current check.
  • IsHandled: >VAR Boolean Parameter to skip the standard field error check.

OnBeforeFieldErrorCheckOnPostServiceShipment(Record Service Header, Boolean) :#

Summary: OnBeforeFieldErrorCheckOnPostServiceShpt is called before the standard field error check on posting a service shipment. You can use this event in order to skip the standard field error check by setting the referenced "IsHandled" parameter to true.

[IntegrationEvent(false, false)]
procedure OnBeforeFieldErrorCheckOnPostServiceShipment(ServiceHeader: Record "Service Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnBeforeFieldErrorCheckOnPostServiceShipment', '', false, false)]
local procedure DoSomethingOnBeforeFieldErrorCheckOnPostServiceShipment(ServiceHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: >Record of type "Service Header". This record holds all the data that is used for the current check.
  • IsHandled: >VAR Boolean Parameter to skip the standard field error check.

OnBeforeFieldErrorCheckOnPostPurchaseReceipt(Record Purchase Header, Boolean) :#

Summary: OnBeforeFieldErrorCheckOnPostPurchaseReceipt is called before the standard field error check on posting a purchase receipt. You can use this event in order to skip the standard field error check by setting the referenced "IsHandled" parameter to true.

[IntegrationEvent(false, false)]
procedure OnBeforeFieldErrorCheckOnPostPurchaseReceipt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnBeforeFieldErrorCheckOnPostPurchaseReceipt', '', false, false)]
local procedure DoSomethingOnBeforeFieldErrorCheckOnPostPurchaseReceipt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseHeader: Record of type "Purchase Header". This record holds all the data that is used for the current check.
  • IsHandled: >VAR Boolean Parameter to skip the standard field error check.