Class CU_ActivityLog_bus

Properties

LOCAL cMainTable$="CU_ActivityLog"  
LOCAL cIsSysDB  

Methods

FUNCTION GenerateActivityLogKey$(timeStamp$)  
FUNCTION WriteActivityLog(dateTimeStamp$, logMessage$, logType$, masUserID$, crmUserID$)  

Write an entry to the Cu Acctivity log

ParameterDescription
dateTimeStamp$ [input, string] Date\Time stamp for record being written
logMessage$ [input, string] Log message being written
logType$ [input, string] Type of log entry. Valid values are: 1=Customer Creation, 2=CRM Account Creation, 3=Account Note Creation, 4=Synchronization, 5=System Messages
masUserID$ [input, string] Sage 100 User ID. This is the userKey$ in SY_User
crmUserID$ [input, string] CRM User ID. If nul and the masUserID has a value, then the CRmUserID is read from the AR_Salesperson Table.
Returns SUCCESS is returned if a log entry is written
Returns FAILURE is returned if no log entry is written
FUNCTION WriteActivityLog(dateTimeStamp$, logMessage$, logType$, masUserID$, crmUserID$, erpCompanyCode$, erpCompanyKey$, InstanceID$)  
ParameterDescription
erpCompanyCode$ [input, string] Sage 100 Company Code currently processing which may not be the same as coSession info
erpCompanyKey$ [input, string] Sage 100 Company Key currently processing which may not be the same as coSession info
InstanceID$ [input, string] Instance currently processing which may not be the same as coSession info
FUNCTION WriteActivityLog(dateTimeStamp$, logMessage$, logType$, masUserID$, crmUserID$, erpCompanyCode$, erpCompanyKey$, InstanceID$, cuRemoved)  
ParameterDescription
cuRemoved [input, numeric] If data is being removed then need to skip opening AR_Salesperson to get CRMUserID

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()