KVSKBACLLCallMgt
Procedures
CreateCallFromContact(Record Contact, Boolean) : Code[20]
Summary: Creates a new call from a contact record and optionally displays the call card.
procedure CreateCallFromContact(Contact: Record "Contact"; ShowPage: Boolean): Code[20]
Parameters:
Contact: The contact record from which the call is being created.ShowPage: Indicates whether to display the call card page after creating the call.
Returns: The number of the newly created call.
Remarks: This procedure creates a new call based on the provided contact record. It determines the appropriate call classification by prompting the user to select a classification. After creating the call, it initializes the contact information for the call and optionally displays the call card page for further details.
CreateCallFromCustomer(Record Customer, Boolean) : Code[20]
Summary: Creates a new call from a customer record and optionally displays the call card.
procedure CreateCallFromCustomer(Customer: Record "Customer"; ShowPage: Boolean): Code[20]
Parameters:
Customer: The customer record from which the call is being created.ShowPage: Indicates whether to display the call card page after creating the call.
Returns: The number of the newly created call.
Remarks: This procedure creates a new call based on the provided customer record. It determines the appropriate call classification by prompting the user to select a classification. After creating the call, it initializes the contact information for the call and optionally displays the call card page for further details.
ArchiveCall(Record KVSKBACLLCallHeader) :
Summary: Archives a call by transferring its data to an archive table and deleting the original record.
procedure ArchiveCall(CLLCallHeader: Record "KVSKBACLLCallHeader"):
Parameters:
CLLCallHeader: The record of the call header to be archived.
Remarks: This procedure handles the archiving of a call. It transfers the data from the active call header to an archive table, including related records such as contacts, positions, text, assigned faults, and assigned CAPA. After successfully transferring the data, it deletes the original call record from the active table. The procedure also raises events before and after the archiving process to allow for custom logic to be executed by subscribers.
ShowCallCard(Code[20]) :
Summary: Opens the call card for a specific call.
procedure ShowCallCard(CallNo: Code[20]):
Parameters:
CallNo: The number of the call to be displayed.
Remarks: This procedure opens the call card page for a specific call based on its classification. It retrieves the call header information and determines which page to display based on the call's classification (e.g., Compliance, Complaint, Claim). The procedure also raises an event before opening the call card to allow for custom logic to be executed by subscribers.
ShowCallCardArchive(Code[20]) :
Summary: Opens the call card for a specific archived call.
procedure ShowCallCardArchive(FinishedCallNo: Code[20]):
Parameters:
FinishedCallNo: The number of the archived call to be displayed.
Remarks: This procedure opens the call card page for a specific archived call based on its classification. It retrieves the archived call header information and determines which page to display based on the call's classification (e.g., Compliance, Complaint, Claim). The procedure also raises an event before opening the call card to allow for custom logic to be executed by subscribers.
GetRecordRefFromSourceRecordID(Integer, Guid, RecordRef) : Boolean
Summary: Retrieves a record reference based on the provided table number and system ID.
procedure GetRecordRefFromSourceRecordID(TableNo: Integer; SystemID: Guid; var RecRef: RecordRef): Boolean
Parameters:
TableNo: The number of the table for which to retrieve the record reference.SystemID: The system ID of the record to be retrieved.RecRef: A variable to hold the retrieved record reference.
Returns: True if the record reference was successfully retrieved; otherwise, false.
Remarks: This procedure retrieves a record reference based on the provided table number and system ID. It first checks if the table number is valid and if the system ID is not null. If both checks pass, it attempts to open the record reference for the specified table and retrieve the record using the system ID. If the record is found, it returns true; otherwise, it returns false.
Events
OnBeforeArchiveCall(Record KVSKBACLLCallHeader, Record KVSKBACLLCallHeaderArchive, Boolean) :
Summary: Event raised before a call is archived, allowing subscribers to implement custom logic and potentially cancel the archiving process.
[IntegrationEvent(false, false)]
local procedure OnBeforeArchiveCall(callHeader: Record "KVSKBACLLCallHeader"; var callHeaderArchive: Record "KVSKBACLLCallHeaderArchive"; var isHandled: Boolean):
Parameters:
callHeader: The record of the call header that is being archived.callHeaderArchive: The record of the archived call header that is being created during the archiving process.isHandled: A boolean variable that subscribers can set to true to indicate that they have handled the archiving process, preventing the default archiving logic from executing.
Remarks: This event is raised before a call is archived, providing subscribers with the opportunity to implement custom logic or even cancel the archiving process. Subscribers can use this event to perform actions such as validating the call data, logging, or implementing custom business rules that should occur before a call is archived. If a subscriber sets the isHandled variable to true, the default archiving logic will be skipped, allowing for complete control over the archiving process.
OnAfterArchiveCall(Record KVSKBACLLCallHeader, Record KVSKBACLLCallHeaderArchive) :
Summary: Event raised after a call has been archived, allowing subscribers to implement custom logic.
[IntegrationEvent(false, false)]
local procedure OnAfterArchiveCall(callHeader: Record "KVSKBACLLCallHeader"; var callHeaderArchive: Record "KVSKBACLLCallHeaderArchive"):
Parameters:
callHeader: The record of the call header that was archived.callHeaderArchive: The record of the archived call header that was created during the archiving process.
Remarks: This event is raised after a call has been archived, providing subscribers with the opportunity to implement custom logic or perform additional actions after the archiving process is complete. Subscribers can use this event to perform actions such as logging, sending notifications, or implementing custom business rules that should occur after a call has been archived.
OnArchiveCallOnBeforeArchive(Record KVSKBACLLCallHeader, Record KVSKBACLLCallHeaderArchive) :
Summary: Event raised before the archiving process of a call, allowing subscribers to implement custom logic before the call data is transferred to the archive table.
[IntegrationEvent(false, false)]
local procedure OnArchiveCallOnBeforeArchive(callHeader: Record "KVSKBACLLCallHeader"; var callHeaderArchive: Record "KVSKBACLLCallHeaderArchive"):
Parameters:
callHeader: The record of the call header that is being archived.callHeaderArchive: The record of the archived call header that is being created during the archiving process.
Remarks: This event is raised before the archiving process of a call, providing subscribers with the opportunity to implement custom logic before the call data is transferred to the archive table. Subscribers can use this event to perform actions such as validating the call data, modifying the archived call header record, or implementing custom business rules that should occur before the call data is archived.
OnArchiveCallOnAfterArchive(Record KVSKBACLLCallHeader, Record KVSKBACLLCallHeaderArchive) :
Summary: Event raised after the archiving process of a call, allowing subscribers to implement custom logic after the call data has been transferred to the archive table.
[IntegrationEvent(false, false)]
local procedure OnArchiveCallOnAfterArchive(callHeader: Record "KVSKBACLLCallHeader"; var callHeaderArchive: Record "KVSKBACLLCallHeaderArchive"):
Parameters:
callHeader: The record of the call header that was archived.callHeaderArchive: The record of the archived call header that was created during the archiving process.
Remarks: This event is raised after the archiving process of a call, providing subscribers with the opportunity to implement custom logic after the call data has been transferred to the archive table. Subscribers can use this event to perform actions such as logging, sending notifications, or implementing custom business rules that should occur after the call data is archived.