-
DBrown
-
- OFFLINE
-
Junior Boarder
-
- Posts: 29
-
Karma: 0
-
|
I am actually creating 2 separate files.
The first file will be used to create the parent record with the highest customer record number[External Unique ID] for each [Household Name].It is the first field,left of the decimal.No duplicate records allowed for Parent record.No duplicates allowed for 2nd field [Household Name]in the Parent file.This record is created from PK1 Sort-Group-Validate functions
"[External Unique ID]","[Household External ID]","[Household Name]","[Store External ID]","[Main Phone #]"
"5372.15501","5372.15501","ANALO_608_GLENGARY_DR_15501","5372.15501","Pittsburgh","4129636615"
The 2nd file will be used to join the same household records to the Parent record (Including the Parent record) using the first field in the parent X-Referenced to the 2nd field [Household External ID] in the file containing all records.
So in the 2nd file all of these records would be Opportunities Belonging to the same Parental Household Record with the 1st record creating the Parent Even though the 2nd file contains the specific Contract information for each opportunity in the Household.
"5372.15501","5372.15501","ANALO_608_GLENGARY_DR_15501","5372.15501","Pittsburgh","4129636615"
"5326.15501","5372.15501","ANALO_608_GLENGARY_DR_15501","5372.15501","Pittsburgh","4129636615"
"5253.15501","5372.15501","ANALO_608_GLENGARY_DR_15501","5372.15501","Pittsburgh","4129636615"
The 2nd file actually looks like this and uses the [External Unique ID] field to separate it as a unique opportunity (Contract) but is uploaded to the Household record utilizing the [Household External ID]created from the first pass through the tool.
"[External Unique ID]","[Household External ID]","[Contract Date]","[Closed Revenue]","[Store EUID]","[Opportunity Name]","[Sales Stage]","[Description]"
"5372.15501","5372.15501","2010-03-11 00:00:00","2060","Pittsburgh","ANALO_608_GLENGARY_DR_15501"","Closed/Won","Double Hung Window,2,344,Pcust,(Cash), 2 DH, Dep 3/11;,216-226-5018, (Cash). 2 DH;"
"5326.15501","5372.15501","2004-12-06 00:00:00","2060","Pittsburgh","ANALO_608_GLENGARY_DR_15501",","Closed/Won","Replacement Window,3,112,SelfGen,3-DH Tan came in as wht should be tan"
"5253.15501","5372.15501","2004-10-09 00:00:00","3972","Pittsburgh","ANALO_608_GLENGARY_DR_15501",","Closed/Won","Replacement Window,3,112,ROP7/31/04,jim to finish coil 12/23; jim to finish coil work; seth to do caps 1/19,3-4Lite CS Wht; install 12/14"
As A side note it would be great if I could accomplish this in one pass!
I was just approved to use an address scrubbing service so the target file will be in Excel & Final final file will be .CSV
|