Class CU_Common

Properties

LOCAL cSageCRMName$="Sage CRM"  
LOCAL cSageCRMInstanceIDFiles$="CU_Address.M4T"+"CU_AddressLink.M4T"+"CU_Company.M4T"+"CU_Email.M4T"+"CU_EmailLink.M4T"+"CU_Notes.M4T"+"CU_Opportunity.M4T"+"CU_QuoteOrderDetail.M4T"+"CU_QuoteOrderTracking.M4T"+"CU_Person.M4T"+"CU_Phone.M4T"+"CU_PhoneLink.M4T"+"CU_Users.M4T"  

[string] list of files that contain SageCRMInstanceID$, inherit CU_Common and get set in WRITE_REC

LOCAL cCRMCompanyFiles$="CU_AddressLink.M4T"+"CU_Company.M4T"+"CU_EmailLink.M4T"+"CU_QuoteOrderDetail.M4T"+"CU_QuoteOrderTracking.M4T"+"CU_Person.M4T"+"CU_PhoneLink.M4T"  
[string] list of files that contain CompanyCode$ and CompanyKey$, inherit CU_Common and get set in WRITE_REC
PROPERTY newRecord  

Methods

FUNCTION AddMappedFieldsColl(destinationTable$)  
FUNCTION CheckForLink()  

Checks if a link record exists for the following: PERSONID$, ADDRESSID$, COMPANYID$, EMAILID$, PHONEID$

Returns [boolean] Success or Failure
FUNCTION GetCRMUserID()  

Gets CRM user ID for the activity log for the current CRM record updating to Sage 100

Returns [boolean] Success or Failure
FUNCTION GetKeyColumns$(chan)  
FUNCTION GetKeyColumns$(chan, index$)  
FUNCTION GetMappedField$(direction)  
FUNCTION GetMappedFields$()  
FUNCTION SetKey()  
FUNCTION SetKey(key$)  
FUNCTION SetPartialRecord(rec$, iol$)  
FUNCTION SetValue(col$, val$)  
FUNCTION SetValue(col, val, setValueIndex)  
FUNCTION SetValue(col$, val)  
FUNCTION UpdateAllFields()  

Updates all Mirror Table fields. Called from the Write method of the business object

Returns [boolean] Success
FUNCTION WRITE()  
FUNCTION WRITE(noSync)  

If a link record exists, update the MAS 90/200 link record Write the record to the CU Mirror Table If the link record key to the CU Mirror Table has changed, then update the Mirror Table record

ParameterDescription
nosync [input, boolean] Indicates if the existing record should be synchronized to the link record
Returns [boolean] Success
FUNCTION LOCAL PERFORM CheckForCompanyLink()  

Reads the link table to get the CompanyID$ for the link record and then checks if the CompanyID$ for the link exists in the CU_Company table

Returns [boolean] Success or Failure
FUNCTION LOCAL InitFieldColl()  

Clear the array for the mapped fields from SY_FieldMapping.M4T Based on the table being mapped, save off the current AddressID$ or EmailID$ and EmailAddress$ or PhoneID$ and PhoneNumber$

Returns [boolean] Success

Properties inherited from: CI_CUConvertData

cCompanyEntityID$, cPersonEntityID$, cCompanyLinkFiles$, cPersonLinkFiles$, cAddressLinkFiles$, cCompanyCreateLinkFiles$, cPersonCreateLinkFiles$, cAddressCreateLinkFiles$, cCompanyWhereClause$

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest

Methods inherited from: CI_CUConvertData

CheckPostCode(), CloseTables(), CreateAdditionalLinks(), CreateLink(), CRMIDChanged(), DissolveLink(), FormatCountryToCRM(), FormatCountryToMAS(), FormatInactiveReasonToCRM(), FormatPersonToCRM(), FormatPersonToMAS(), FormatPhoneNumberToCRM(), FormatPhoneNumberToMAS(), FormatStateToMAS(), FormatTaxScheduleToCRM(), FormatTermsCodeToCRM(), GenerateContactCode$(), GenerateNewCRMID(), GenerateShipToCode$(), GenerateTimeStamp$(), GetAddressLinkID$(), GetEmailLinkID$(), GetPhoneLinkID$(), GetTaxSchedule(), LinkedToCRM(), PromoteCompanyToCustomer(), PushData(), PushMasData(), SetCustomerTemplate(), CheckColumnsToSkip(), GetCRMValidationGroupMembers$(), PERFORM InstantiateLinkObject(), PERFORM OpenCountryFile(), OpenTable(), PushDataReadLine(), PERFORM SetCRMCompanyFields(), PERFORM SetKeyLength(), PERFORM TranslateField(), UpdatePrimaryContactID(), ValidateGroupCRM()

Methods inherited from: SY_Maint

ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()