KVSMEDContactShortcollLib
Procedures
SetDataInContactShortcollFromTemplate(Record KVSMEDContactShortcollection, Code[10]) : Text[250]
Summary: This function sets data in contact shortcollection from a choosen template
procedure SetDataInContactShortcollFromTemplate(var KVSMEDContactShortcollection: Record "KVSMEDContactShortcollection"; TemplateCode: Code[10]): Text[250]
Parameters:
KVSMEDContactShortcollection:TemplateCode:
Returns:
CreateEntitiesFromShortcollection(Record KVSMEDContactShortcollection, Boolean) : Text[250]
Summary: This function creates entities (contact / vendor / customer) from shortcollection
procedure CreateEntitiesFromShortcollection(var KVSMEDContactShortcollection: Record "KVSMEDContactShortcollection"; ShowConfirmationMessage: Boolean): Text[250]
Parameters:
KVSMEDContactShortcollection:ShowConfirmationMessage:
Returns:
Events
OnBeforeCreateEntitiesOnBeforeCreateEntitiesFromShortcollection(Record KVSMEDContactShortcollection, Boolean, Boolean) :
Summary: This event is raised before the creation of entities from a shortcollection. It allows for custom logic to be executed before the entities are created. If the event is not handled, the default behavior will continue.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateEntitiesOnBeforeCreateEntitiesFromShortcollection(var KVSMEDContactShortcollection: Record "KVSMEDContactShortcollection"; var RunWizard: Boolean; var IsHandled: Boolean):
Parameters:
KVSMEDContactShortcollection:RunWizard:IsHandled:
OnBeforeCreateContactFromShortcollection(Record KVSMEDContactShortcollection, Boolean, Boolean, Boolean, Boolean, Text[250]) :
Summary: Raised in before the contact entity is created from the contact shortcollection. Subscribe to this event to run custom validation or to skip the default contact creation by setting to true. When handled, the value of is returned to the caller.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateContactFromShortcollection(var KVSMEDContactShortcollection: Record "KVSMEDContactShortcollection"; var UseFieldsCheck: Boolean; var RunFieldsCheckWithWizzard: Boolean; var OpenContactPage: Boolean; var IsHandled: Boolean; var ErrorTextRv: Text[250]):
Parameters:
KVSMEDContactShortcollection: The contact shortcollection record used as the source for the new contact.UseFieldsCheck: Specifies whether mandatory field checks should be performed after contact creation.RunFieldsCheckWithWizzard: Specifies whether the mandatory field check should run with the wizard UI.OpenContactPage: Specifies whether the contact card page should be opened after creation. Set this to false to prevent opening the page.IsHandled: Set to true to skip the default contact creation logic.ErrorTextRv: System.Object[]
OnAfterCreateContactFromShortcollection(Record KVSMEDContactShortcollection, Record Contact, Boolean, Boolean, Boolean, Boolean, Text[250]) :
Summary: Raised in after the contact entity has been created from the contact shortcollection. Subscribe to this event to run custom post-processing or to skip the default follow-up behavior by setting to true. When handled, the value of is returned to the caller.
[IntegrationEvent(false, false)]
local procedure OnAfterCreateContactFromShortcollection(var KVSMEDContactShortcollection: Record "KVSMEDContactShortcollection"; var Contact: Record "Contact"; UseFieldsCheck: Boolean; RunFieldsCheckWithWizzard: Boolean; var OpenContactPage: Boolean; var IsHandled: Boolean; var ErrorTextRv: Text[250]):
Parameters:
KVSMEDContactShortcollection: The contact shortcollection record used as the source for the created contact.Contact: The created contact record.UseFieldsCheck: Specifies whether mandatory field checks were requested after contact creation.RunFieldsCheckWithWizzard: Specifies whether the mandatory field check should run with the wizard UI.OpenContactPage: Specifies whether the contact card page should be opened after creation. Set this to false to prevent opening the page.IsHandled: Set to true to skip the default post-creation logic.ErrorTextRv: System.Object[]
OnAfterCreateCustomerFromShortcollection(Record KVSMEDContactShortcollection, Record Customer, Boolean, Boolean, Boolean, Boolean, Text[250]) :
Summary: Raised in after the customer entity has been created from the contact shortcollection. Subscribe to this event to run custom post-processing or to skip the default follow-up behavior by setting to true. When handled, the value of is returned to the caller.
[IntegrationEvent(false, false)]
local procedure OnAfterCreateCustomerFromShortcollection(var KVSMEDContactShortcollection: Record "KVSMEDContactShortcollection"; var Customer: Record "Customer"; UseFieldsCheck: Boolean; RunFieldsCheckWithWizzard: Boolean; var OpenCustomerPage: Boolean; var IsHandled: Boolean; var ErrorTextRv: Text[250]):
Parameters:
KVSMEDContactShortcollection: The contact shortcollection record used as the source for the created customer.Customer: The created customer record.UseFieldsCheck: Specifies whether mandatory field checks were requested after customer creation.RunFieldsCheckWithWizzard: Specifies whether the mandatory field check should run with the wizard UI.OpenCustomerPage: Specifies whether the customer card page should be opened after creation. Set this to false to prevent opening the page.IsHandled: Set to true to skip the default post-creation logic.ErrorTextRv: System.Object[]
OnAfterCreateVendorFromShortcollection(Record KVSMEDContactShortcollection, Record Vendor, Boolean, Boolean, Boolean, Boolean, Text[250]) :
Summary: Raised in after the vendor entity has been created from the contact shortcollection. Subscribe to this event to run custom post-processing or to skip the default follow-up behavior by setting to true. When handled, the value of is returned to the caller.
[IntegrationEvent(false, false)]
local procedure OnAfterCreateVendorFromShortcollection(var KVSMEDContactShortcollection: Record "KVSMEDContactShortcollection"; var Vendor: Record "Vendor"; UseFieldsCheck: Boolean; RunFieldsCheckWithWizzard: Boolean; var OpenVendorPage: Boolean; var IsHandled: Boolean; var ErrorTextRv: Text[250]):
Parameters:
KVSMEDContactShortcollection: The contact shortcollection record used as the source for the created vendor.Vendor: The created vendor record.UseFieldsCheck: Specifies whether mandatory field checks were requested after vendor creation.RunFieldsCheckWithWizzard: Specifies whether the mandatory field check should run with the wizard UI.OpenVendorPage: Specifies whether the vendor card page should be opened after creation. Set this to false to prevent opening the page.IsHandled: Set to true to skip the default post-creation logic.ErrorTextRv: System.Object[]