KVSKBACLLCallNotificationLib
Procedures
CheckForOpenToDos(Code[20]) : Boolean
Summary: Checks if there are any open to-dos associated with a specific call number.
procedure CheckForOpenToDos(CallNo: Code[20]): Boolean
Parameters:
CallNo: The call number for which to check open to-dos.
Returns: True if there are open to-dos for the specified call number; otherwise, false.
Remarks: This procedure queries the "To-do" table to determine if there are any records that are linked to the given call number and are not marked as closed. It returns true if such records exist, indicating that there are open to-dos for the call, and false if there are no open to-dos.
Events
OnBeforeCreateToDo(Record KVSKBACLLCallHeader, Text, Boolean) :
Summary: Integration event that is raised before a to-do is created for a call.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateToDo(callHeader: Record "KVSKBACLLCallHeader"; txt: Text; var isHandled: Boolean):
Parameters:
callHeader: The call header record.txt: The to-do description text.isHandled: Output parameter indicating if the event was handled.
Remarks: Subscribers can implement custom logic before a to-do is created for a call. Subscribers can use this event to modify the call header, the to-do description text, or even cancel the creation of the to-do by setting the isHandled parameter to true.
OnBeforeInsertToDoOnCreateToDo(Record KVSKBACLLCallHeader, Record To-do, Record Salesperson/Purchaser) :
Summary: This event is raised before a new to-do record is inserted into the database during the creation of a to-do for a call
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertToDoOnCreateToDo(callHeader: Record "KVSKBACLLCallHeader"; var toDo: Record "To-do"; salesperson: Record "Salesperson/Purchaser"):
Parameters:
callHeader: The call header record.toDo: The to-do record.salesperson: The salesperson record.
Remarks: This event is raised before a new to-do record is inserted into the database during the creation of a to-do for a call. Subscribers can use this event to implement custom logic, such as modifying the to-do record, performing additional validations, or even canceling the insertion of the to-do by setting the isHandled parameter to true.
OnBeforeModifyToDoOnCloseToDo(Record To-do) :
Summary: This event is raised before modifying a to-do record when closing to-dos for a call.
[IntegrationEvent(false, false)]
local procedure OnBeforeModifyToDoOnCloseToDo(var toDo: Record "To-do"):
Parameters:
toDo: The to-do record that is being modified.
Remarks: This event is raised before modifying a to-do record when closing to-dos for a call. Subscribers can use this event to implement custom logic, such as performing additional validations, modifying the to-do record before it is closed, or even canceling the modification by setting the Closed field back to false.