Table of Contents

KVSCRSCompanySelection

Summary: Stores the companies that the Creditsafe service returned as the result of a company search. Every record represents one hit with its Creditsafe identification, its address data and the report types that are available for it. The user picks one of these records to assign a Creditsafe ID to a customer, vendor or contact.

Fields

Name Type Note
Creditsafe ID Text[30]
Creditsafe SafeNumber Text[30]
Last Modification at Date
Online Report possible Boolean
Monitoring possible Boolean
Basic Report possible Boolean
Full Report possible Boolean
Name Text[151]
Type Text[30]
Status Text[30]
Register No. Text[30]
Address Text[151]
Post Code Text[30]
City Text[30]
Country Code[2]
DE Reason Code Enum (KVSCRSDEReasonCodes)
Company Type Integer
Company No. Code[20]

Procedures

CreateContact(Record KVSCRSIDLanguage, Boolean) : Code[20]

Summary: Creates a contact record from the selected Creditsafe company data.

procedure CreateContact(CrsIDLanguage: Record "KVSCRSIDLanguage"; ShowAfterInsert: Boolean): Code[20]

Parameters:

  • crsIDLanguage: Language settings for the ID format
  • showAfterInsert: Whether to show the contact card after creation

Returns: The contact number of the created contact

CreateCustomer(Record KVSCRSIDLanguage, Boolean) :

Summary: Creates a customer record from the selected Creditsafe company data.

procedure CreateCustomer(CrsIDLanguage: Record "KVSCRSIDLanguage"; ShowAfterInsert: Boolean): 

Parameters:

  • crsIDLanguage: Language settings for the ID format
  • showAfterInsert: Whether to show the customer card after creation

CreateVendor(Record KVSCRSIDLanguage, Boolean) :

Summary: Creates a vendor record from the selected Creditsafe company data.

procedure CreateVendor(CrsIDLanguage: Record "KVSCRSIDLanguage"; ShowAfterInsert: Boolean): 

Parameters:

  • crsIDLanguage: Language settings for the ID format
  • showAfterInsert: Whether to show the vendor card after creation

GetReportForKnown(Variant) :

Summary: Retrieves a credit report for a known company record.

procedure GetReportForKnown(VariantRec: Variant): 

Parameters:

  • variantRec: The company record (Customer, Vendor, or Contact) to get the report for

GetReportForUnknown(Record KVSCRSIDLanguage) :

Summary: Retrieves a credit report for an unknown company from Creditsafe data.

procedure GetReportForUnknown(var CrsIDLanguage: Record "KVSCRSIDLanguage"): 

Parameters:

  • crsIDLanguage: Language settings for the report format

GetRecRefByCompanySelection(RecordRef) : Boolean

Summary: Gets a record reference to the associated company record (Customer, Vendor, or Contact).

procedure GetRecRefByCompanySelection(var RecRef: RecordRef): Boolean

Parameters:

  • recRef: The record reference that will be populated with the company record

Returns: True if a matching record was found, false otherwise