CTI_QC_SRCH_VW

(SQL View)
Index Back

CTI custom view

Date Initials Issue Description 022301 dms SP2 (F-CJORGENS-9) CTI Integration

SELECT cst.customer_setid , cnt.contact_id , cnt.name1 , phn.phone , cnt.emailid , cr.cr_card_nbr , cst.cust_id , cust.name1 , addr.phone , addr.address1 , addr.city , addr.state , addr.postal , addr.country FROM ps_contact cnt , ps_contact_cust cst , ps_customer cust , PS_CUST_ADDRESS addr , ps_contact_phn phn , ps_contact_card cr WHERE %EffdtCheck(contact,cnt,%currentdatein) AND cst.setid=cnt.setid AND cst.contact_id=cnt.contact_id AND cst.effdt=cnt.effdt AND cst.customer_setid=cust.setid AND cst.cust_id=cust.cust_id AND cust.setid = addr.setid AND cust.cust_id = addr.cust_id AND %EffdtCheck(cust_address,addr,%currentdatein) AND phn.setid = cnt.setid AND phn.contact_id = cnt.contact_id AND phn.effdt = cnt.effdt AND phn.phone_type = 'BUSN' AND cr.setid = cst.setid AND cr.contact_id = cst.contact_id AND cr.customer_setid = cst.customer_setid AND cr.cust_id = cst.cust_id AND cr.effdt = cst.effdt

  • Related Language Record: CTI_QC_SRCH_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts

    Prompt Table: CONTACT

    3 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    4 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
    5 EMAILID Character(70) VARCHAR2(70) NOT NULL A user's E-mail address
    6 CR_CARD_NBR Character(44) VARCHAR2(44) NOT NULL "See OM
    7 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.

    Prompt Table: CUSTOMER

    8 CUST_NAME Character(40) VARCHAR2(40) NOT NULL Name
    9 PHONE2 Character(24) VARCHAR2(24) NOT NULL Telephone
    10 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
    11 CITY Character(30) VARCHAR2(30) NOT NULL City
    12 STATE Character(6) VARCHAR2(6) NOT NULL State
    13 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
    14 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

    Prompt Table: COUNTRY_TBL