BO_PRI_PHONE_VW

(SQL View)
Index Back

Primary Phone for a Bus Object

This is the Primary Phone for a Bus Object view for Person and Company SES.

SELECT A.BO_ID ,A.ROLE_TYPE_ID , A.COUNTRY_CODE , A.PHONE , A.EXTENSION FROM PS_BO_SRCH_PHN A WHERE A.PRIMARY_IND = 'Y' AND A.CM_USE_START_DT <= %CurrentDateIn AND A.CM_USE_END_DT > %CurrentDateIn AND A.ROLE_TYPE_ID <> 4 UNION SELECT A.BO_ID ,86 , A.COUNTRY_CODE , A.PHONE , A.EXTENSION FROM PS_BO_SRCH_PHN A WHERE A.CM_USE_START_DT <= %CurrentDateIn AND A.CM_USE_END_DT > %CurrentDateIn AND A.ROLE_TYPE_ID = 4 AND A.cm_purpose_type_id=11

# 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 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL This field stores the Country Code values.
4 PHONE Character(24) VARCHAR2(24) NOT NULL This field stores the Telephone number.
5 EXTENSION Character(6) VARCHAR2(6) NOT NULL This field stores the Phone extension.