Click or drag to resize

clsImportKnowledgeBaseEntry Class

Import for table MPKBArtikel: Support Module: Knowledge Base Header with the content of the main languange
Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportKnowledgeBaseEntry

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public class clsImportKnowledgeBaseEntry : clsImportBase

The clsImportKnowledgeBaseEntry type exposes the following members.

Constructors
  NameDescription
Public methodclsImportKnowledgeBaseEntry
Initializes a new instance of the clsImportKnowledgeBaseEntry class
Top
Properties
  NameDescription
Public propertyCardCode
Business Partner
Public propertyCompany
SMALLINT (2) Company
Public propertyContent
Content: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
Public propertyDescription
NVARCHAR (254) Description text - mandatory
Public propertyInternal
SMALLINT (2) Internal
Public propertyItemDate
ItemDate
Public propertyItemType
SMALLINT (2) ItemType
Public propertyKBItemID
Internal ID of the knowledge base entry INT (4) Unique ID (via MPTAN). In access can be <100000 to align the positions
Public propertyKeyWordList
Place keywords separated by ";" in this fields. Keywords are stored in table KnowledgeBaseEntryKeyWords
Public propertyLanguageCode
LanguageCode internal language id linked to table MPSysKundenSprachen - mandatory. If a default is defined, the default is used.
Public propertySource
Source: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
Public propertySummary
Summary: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
Top
Methods
Remarks
Examples
Create a knowledge base entry with the default language
public int CreateKnowledgeBaseEntry() {
    clsImportKnowledgeBaseEntry oKBEntry = new clsImportKnowledgeBaseEntry();

    oKBEntry.Description = "MS Office Installation Tipp";
    oKBEntry.LanguageCode = 100000; //See Table MPSysKundenSprachen.CustomerLanguageID or view MARISysCustomerLanguages.CustomerLanguageID
    oKBEntry.Content = "Details in English";
    oKBEntry.Source = "lorem ipsum";
    oKBEntry.Summary = "lorem ipsum";
    oKBEntry.Internal = true;
    oKBEntry.ItemDate = DateTime.Today;
    oKBEntry.ItemType = clsImportKnowledgeBaseEntry.eItemType.CurrentItem;
    oKBEntry.KeyWordList = "Office; Installation; Tipp";
    // Create first Language Entry

    if (!oMPInterface.bImportKnowledgeBaseEntry(oKBEntry, clsImportBase.eImportMode.ValidateAndImport)) {
        // oTimeKeepingLine.oErrors contains all Errors
        throw new Exception(oMPInterface.oErrors.PrintErrors());
    } else {
        return oKBEntry.KBItemID;
    }
}
See Also