| 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 |
| FUNCTION AddMappedFieldsColl(destinationTable$) | ||||
| FUNCTION CheckForLink() | ||||
Checks if a link record exists for the following: PERSONID$, ADDRESSID$, COMPANYID$, EMAILID$, PHONEID$ | ||||
| ||||
| FUNCTION GetCRMUserID() | ||||
Gets CRM user ID for the activity log for the current CRM record updating to Sage 100 | ||||
| ||||
| 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 | ||||
| ||||
| 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 | ||||
| ||||
| ||||
| 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 | ||||
| ||||
| 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$ | ||||
|
|
cCompanyEntityID$, cPersonEntityID$, cCompanyLinkFiles$, cPersonLinkFiles$, cAddressLinkFiles$, cCompanyCreateLinkFiles$, cPersonCreateLinkFiles$, cAddressCreateLinkFiles$, cCompanyWhereClause$ |
|
cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest, SkipNullCheck$, AFSRequiredFields$ |
|
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() |
|
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(), InitSearchForUpdate(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), PreWriteScripts(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule() |
|