KVSCRSID
Summary: Links a customer, vendor or contact of Business Central with the corresponding company in the Creditsafe database. Besides the Creditsafe ID and the SafeNumber the record holds the services that are available for the company and the defaults that are used when a report is requested for it.
Fields
| Name | Type | Note |
|---|---|---|
| Company Type | Integer | |
| Company No. | Code[20] | |
| ID | Text[30] | |
| SafeNumber | Text[30] | |
| Basic Report possible | Boolean | |
| Full Report possible | Boolean | |
| Online Report possible | Boolean | |
| Monitoring possible | Boolean | |
| DE Reason Code | Enum (KVSCRSDEReasonCodes) | |
| Creditsafe Language | Enum (KVSCRSLanguages) | |
| Creditsafe Country | Code[2] |
Procedures
GetCreditSafeID(Variant) :
Summary: Retrieves the Creditsafe ID record for a given variant record. Loads the ID record if found or clears it if not found.
procedure GetCreditSafeID(VariantRec: Variant):
Parameters:
variantRec: The variant record to get the Creditsafe ID for (Customer, Vendor, or Contact)
CreditSafeIDExists(Text) : Boolean
Summary: Checks if a Creditsafe ID exists in the system. Searches by ID field to determine availability.
procedure CreditSafeIDExists(CrsID: Text): Boolean
Parameters:
crsId: The Creditsafe ID to check for existence
Returns: True if the ID exists, false otherwise
GetLastReportEntryID() : Integer
Summary: Gets the entry ID of the most recent successful credit report request. Finds the latest valid report request for tracking and reference purposes.
procedure GetLastReportEntryID(): Integer
Returns: Entry ID of the last successful report request, or 0 if none found
GetByID(Text, Record KVSCRSID) : Boolean
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Summary: Retrieves a Creditsafe ID record by its ID value. Searches the table for a matching ID and returns the first record found.
[Obsolete('Simplified procedure. Use the GetByID(IdPar: Text): Boolean method instead.', '29.0')]
procedure GetByID(IdPar: Text; var CrsID: Record "KVSCRSID"): Boolean
Parameters:
IdPar: The Creditsafe ID to search forCrsID: The found Creditsafe ID record (by reference)
Returns: True if a record was found, false otherwise
GetByID(Text) : Boolean
Summary: Retrieves a Creditsafe ID record by its ID value. Searches the table for a matching ID and returns the first record found.
procedure GetByID(IdPar: Text): Boolean
Parameters:
IdPar: The Creditsafe ID to search for
Returns: True if a record was found, false otherwise
GetExistingByID(Text, Text, Text, Text) : Boolean
Summary: Finds existing companies (Customer, Vendor, Contact) that have the specified Creditsafe ID. Validates that the linked companies still exist in their respective tables.
procedure GetExistingByID(IdPar: Text; var ContactNo: Text; var CustomerNo: Text; var VendorNo: Text): Boolean
Parameters:
idPar: The Creditsafe ID to search forcontactNo: Returns the Contact number if found (by reference)customerNo: Returns the Customer number if found (by reference)vendorNo: Returns the Vendor number if found (by reference)
Returns: True if at least one valid company was found, false otherwise
GetCompanyName() : Text
Summary: Gets the company name for the current Creditsafe ID record. Retrieves the name from the linked company record (Customer, Vendor, or Contact).
procedure GetCompanyName(): Text
Returns: The company name if found, empty text otherwise
GetRecRefByCompanyTypeNo(Integer, Code[20], RecordRef) : Boolean
Summary: Gets a record reference for a specific company type and number. Opens the appropriate table based on company type and finds the matching record.
procedure GetRecRefByCompanyTypeNo(CompanyType: Integer; CompanyNo: Code[20]; var RecRef: RecordRef): Boolean
Parameters:
companyType: The table ID representing the company type (Customer, Vendor, Contact)companyNo: The company number to search forrecRef: Returns the record reference if found (by reference)
Returns: True if the record was found, false otherwise