Click or drag to resize

clsImportTenantCustomer Class

Import for table MPTenantTenants: Management of MARIProject/SBO client installations: Create a tenant customer
Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportTenantCustomer

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

The clsImportTenantCustomer type exposes the following members.

Constructors
  NameDescription
Public methodclsImportTenantCustomer
Initializes a new instance of the clsImportTenantCustomer class
Top
Properties
  NameDescription
Public propertyCompanyID
Linked company in the master database. Required for the card code
Public propertyCustomerCardCode
Customer OCRD.CardCode
Public propertyEnvironmentID
Link to the unique enviornment id for each network. See clsImportTenantEnvironment.
Public propertyEnvironmentPartnerCardCode
Environment Partner OCRD.CardCode
Public propertyEnvironmentPartnerName
Environment Partner Name
Public propertyInActive
InActive
Public propertyKundeLizenzID
Linked customer license for the default license file.
Public propertyMARIProjectPartnerCardCode
MARIProject Partner OCRD.CardCode
Public propertyMemo
Memo
Public propertySBOInstallationID
SBO InstallationID from SAP
Public propertySBOPartnerCardCode
SBO Partner OCRD.CardCode
Public propertySBOPartnerName
SBO Partner Name
Public propertyTenantID
unique customer/tenant id. can be 0 for import.
Public propertyTenantName
Tenant Name
Top
Methods
Remarks
Examples
Create new tenant customer
public bool CreateTenantCustomer(string TenantName, string CustomerCardCode) {
    clsImportTenantCustomer oImportTenantCustomer = new clsImportTenantCustomer();
    oImportTenantCustomer.TenantName = TenantName;
    oImportTenantCustomer.EnvironmentID = 1; //Cloud SELECT EnvironmentID FROM MARITenantEnvironments
    oImportTenantCustomer.CompanyID = 1; // first linked company of the managing company (where the client is linked)
    oImportTenantCustomer.CustomerCardCode = CustomerCardCode; //OCRD.CardCode
    oImportTenantCustomer.MARIProjectPartnerCardCode = CustomerCardCode; //OCRD.CardCode
    oImportTenantCustomer.SBOPartnerCardCode = CustomerCardCode; //OCRD.CardCode
    oImportTenantCustomer.EnvironmentPartnerCardCode = CustomerCardCode; //OCRD.CardCode

    if (oMPInterface.bImportTenantCustomer(oImportTenantCustomer, clsImportBase.eImportMode.ValidateAndImport)) {
        return true;
    } else {
        throw new Exception(oMPInterface.oErrors.PrintErrors());
    }
}
See Also