KVSKBAContact
Extends #437dbf0e84ff417a965ded2bb9650972#Contact
Fields
| Name | Type | Note |
|---|---|---|
| KVSKBANoofAdvertisingGroups | Integer | FlowField |
| KVSKBANoofOpenToDos | Integer | FlowField |
| KVSKBANoofToDos | Integer | FlowField |
| KVSKBANoofSalesQuotes | Integer | FlowField |
| KVSKBANoofSalesOrders | Integer | FlowField |
| KVSKBANoofPurchaseQuotes | Integer | FlowField |
| KVSKBANoofPurchaseOrders | Integer | FlowField |
| KVSKBANoofPstSalesInvoices | Integer | FlowField |
| KVSKBANoofPstSalesCreditMemos | Integer | FlowField |
| KVSKBANoofPstPurchaseInvoices | Integer | FlowField |
| KVSKBANoofPstPurchCrMemos | Integer | FlowField |
| KVSKBACustomerFilter | Code[20] | FlowFilter |
| KVSKBAVendorFilter | Code[20] | FlowFilter |
| KVSKBAContactFilter | Code[20] | FlowFilter |
| KVSKBANoofSalesBlanketOrders | Integer | FlowField |
| KVSKBANoofPurchBlanketOrders | Integer | FlowField |
| KVSKBANoofSalesShipments | Integer | FlowField |
| KVSKBANoofPurchaseRcpt | Integer | FlowField |
| KVSKBAFaxAllowed | Enum (KVSKBABlankYesNo) | Warning: Obsolete |
| KVSKBAEMailAllowed | Enum (KVSKBABlankYesNo) | |
| KVSKBAPhoneAllowed | Enum (KVSKBABlankYesNo) | |
| KVSKBALetterAllowed | Enum (KVSKBABlankYesNo) | |
| KVSKBANoofComLogEntry | Integer | FlowField |
Procedures
KVSKBACheckCommunicationAllowed(Record Contact, Boolean, Boolean, Boolean, Boolean, Boolean) : Boolean
Summary: Checks if communication with the contact is allowed using the specified communication methods.
procedure KVSKBACheckCommunicationAllowed(KVSKBAContact: Record "Contact"; ShowError: Boolean; UseFax: Boolean; UseEmail: Boolean; UsePhone: Boolean; UseLetter: Boolean): Boolean
Parameters:
KVSKBAContact: The contact record to check.ShowError: Indicates whether to show an error message if communication is not allowed.UseFax: Indicates whether to check if fax communication is allowed.UseEmail: Indicates whether to check if email communication is allowed.UsePhone: Indicates whether to check if telephone communication is allowed.UseLetter: Indicates whether to check if letter communication is allowed.
Returns: True if communication is allowed using at least one of the specified methods, otherwise false.
Remarks: This procedure checks if communication with the contact is allowed based on the contact's type and the allowed communication methods specified in the contact record. If the contact is of type "Person", it checks the corresponding fields for each communication method (fax, email, phone, letter) to determine if communication is allowed. If communication is not allowed and the "ShowError" parameter is set to true, it will trigger a field error on the respective field. The procedure returns true if communication is allowed using at least one of the specified methods, otherwise it returns false.
KVSKBAFindVendorTempl() : Code[20]
Summary: Finds the vendor template code associated with the contact.
procedure KVSKBAFindVendorTempl(): Code[20]
Returns: The vendor template code if found, otherwise an empty string.
Remarks: This procedure retrieves the vendor template code associated with the contact by calling the "FindVendorTempl" method of the "KVSKBAVendorTemplMgt" codeunit. It passes the current contact record as a parameter to the method, which performs the necessary logic to find and return the corresponding vendor template code. If a vendor template code is found, it is returned; otherwise, an empty string is returned.
Events
KVSKBAOnBeforeCheckCommunicationAllowed(Record Contact, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) :
Summary: Raised before Check Communication Allowed is executed.
[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeCheckCommunicationAllowed(Contact: Record "Contact"; ShowError: Boolean; Fax: Boolean; Email: Boolean; Phone: Boolean; Letter: Boolean; var Allowed: Boolean; var IsHandled: Boolean):
Parameters:
Contact: The contact record for which the communication check is being performed.ShowError: Indicates whether to show an error if communication is not allowed.Fax: Indicates whether fax communication is being checked.Email: Indicates whether email communication is being checked.Phone: Indicates whether phone communication is being checked.Letter: Indicates whether letter communication is being checked.Allowed: Indicates whether communication is allowed.IsHandled: Indicates whether the event has been handled.
Remarks: Subscribe to this event to implement custom logic before the communication check is performed in the "KVSKBACheckCommunicationAllowed" procedure. This event provides access to the contact record, the communication methods being checked, and allows for modification of the "Allowed" result or to bypass the standard logic by setting "IsHandled" to true.