RBF_BO_CM_VW(SQL View) |
Index Back |
---|---|
Sales BO Contact Method ViewCRM Sales - BO Contact Method View |
SELECT DISTINCT A.BO_ID , B.ROLE_TYPE_ID , A.CM_TYPE_ID , A.CM_PURPOSE_TYPE_ID , A.PROFILE_CM_SEQ , A.CM_NICKNAME , B.PRIMARY_IND , %subrec(CM_ADDRESS_SBR, C) , %subrec(CM_PHON_PGR_SBR, C) , %subrec(CM_EMAIL_SBR, C) FROM PS_BO_CM A , PS_BO_CM_USE B , PS_CM C WHERE A.BO_ID = A.BO_ID AND A.CM_ID = C.CM_ID AND A.CM_TYPE_ID = C.CM_TYPE_ID AND A.BO_ID = B.BO_ID AND A.PROFILE_CM_SEQ = B.PROFILE_CM_SEQ AND B.BO_CM_USE_TYPE = 'R' AND B.CM_USE_START_DT <= %CurrentDateIn AND B.CM_USE_END_DT > %CurrentDateIn AND A.BO_CM_START_DT = ( SELECT MAX (BO_CM_START_DT) FROM PS_BO_CM WHERE BO_ID = A.BO_ID AND PROFILE_CM_SEQ = A.PROFILE_CM_SEQ AND CM_TYPE_ID = A.CM_TYPE_ID AND A.BO_CM_START_DT <= %CurrentDateIn AND A.BO_CM_END_DT > %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID |
2 | ROLE_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
3 | CM_TYPE_ID | Number(6,0) | INTEGER NOT NULL | Contact Method Type ID |
4 | CM_PURPOSE_TYPE_ID | Number(6,0) | INTEGER NOT NULL | Relationship Contact Method Purpose ID |
5 | PROFILE_CM_SEQ | Number(31,0) | DECIMAL(31) NOT NULL | The Contact Method Profile ID is a key field that is used to reference the details of a Contact Method in various CM tables. |
6 | CM_NICKNAME | Character(30) | VARCHAR2(30) NOT NULL | Nickname of a Contact Method |
7 | PRIMARY_IND | Character(1) | VARCHAR2(1) NOT NULL |
Flag that indicates whether or not it is Primary
N=No Y=Yes |
8 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL |
Country
Prompt Table: COUNTRY_TBL |
9 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
10 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
11 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
12 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
13 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
14 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
15 | NUM2 | Character(4) | VARCHAR2(4) NOT NULL | Number 2 |
16 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat Reference WW=House Trailer Reference |
17 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
18 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
19 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
20 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
21 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: %EDIT_STATE |
22 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
23 | GEO_CODE | Character(11) | VARCHAR2(11) NOT NULL | Geo Code |
24 | IN_CITY_LIMIT | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit
Y/N Table Edit Default Value: Y |
25 | CROSS_STREET_1 | Character(50) | VARCHAR2(50) NOT NULL | Cross Street of a location |
26 | CROSS_STREET_2 | Character(50) | VARCHAR2(50) NOT NULL | Cross Street of a location |
27 | ADDRESS_SUB_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Address Sub Type Field
ADDR=Address INT=Intersection Default Value: ADDR |
28 | ADDRESS1_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS1_AC |
29 | ADDRESS3_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS3_AC |
30 | ADDRESS2_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS2_AC |
31 | ADDRESS4_AC | Character(55) | VARCHAR2(55) NOT NULL | Alternate Character Address 4. |
32 | CITY_AC | Character(30) | VARCHAR2(30) NOT NULL | CITY_AC |
33 | REGION_ID | Character(15) | VARCHAR2(15) NOT NULL |
This field stores the region id value.
Prompt Table: RD_REGION_VW |
34 | TIMEZONE | Character(9) | VARCHAR2(9) NOT NULL |
Time Zone
Prompt Table: PSTIMEZONE |
35 | CM_ID_PHONE | Number(31,0) | DECIMAL(31) NOT NULL |
CM_ID_PHONE
Prompt Table: CM_PHONE |
36 | TAX_CD | Character(8) | VARCHAR2(8) NOT NULL | Tax Code |
37 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | This field stores the Country Code values. |
38 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | This field stores the Telephone number. |
39 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | This field stores the Phone extension. |
40 | PASSWORD | Character(254) | VARCHAR2(254) NOT NULL | Password |
41 | EMAIL_ADDR | Character(70) | VARCHAR2(70) NOT NULL | Email address to store the address of email. |
42 | EMAIL_DOMAIN | Character(50) | VARCHAR2(50) NOT NULL | Email Domain |
43 | HTML_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Field to determine if an Email Address can receive HTML Based Email.
N=No Y=Yes |