Skip to main content

Quick Reference

Essential lookup tables and reference information for working with the account hierarchy.

Common Parent Account IDs

ParentIDHierarchy
UPS11971:N:N
McKesson12091:N:N
Goodwill Industries of Kentucky10021:1:N
Sonepar11951:1:N
Ball Corp13561:1:N

Data Cleaning Functions

Utility Functions
OptionTypeDescriptionDefault
dbo.udf_remove_punc_spaces()UDFClean address formatting - removes punctuation and extra spaces
dbo.udf_null_if_blank()UDFConvert empty strings to NULL for cleaner data
dbo.udf_initcap()UDFProper case formatting (Title Case)

Key Join Fields

Portal FieldCieTrade FieldNotes
cietrade_account_idaccounts.account_idCPID - counterparty identifier
cietrade_address_idaddresses.address_idLocation identifier
location_nameaddresses.location_nameBusiness key - must match exactly

Exclusion List

See the full exclusion list — vendor CPIDs, seasonal accounts, and special cases — in the CRM Guide.

DocumentLocationPurpose
DDL & ERDddl/README.mdColumn definitions, indexes
Templatescreate_new_account/README.mdTemplate selection guide
Sync Scriptssync/README.mdExecution order
WDP Integrationwg_data_platform/README.mdReporting architecture
Business RulesBUSINESS_RULES.mdAccount-specific rules

Next Steps