KVSCRSID#
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#
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; 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
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