RI_LEADCSTAT_VW(SQL View) |
Index Back |
---|---|
Lead Status ViewLead Status view used in 360-Degree View. |
SELECT A.BO_ID_CUST , A.ROLE_TYPE_ID_CUST , 0 , 0 , A.BO_ID_SITE , A.LEAD_ID , A.DESCR50 , A.BUSINESS_UNIT , A.PERSON_ID , A.SALES_USER_NAME , A.NAME1 , A.OPPORTUNITY_ID , A.LEAD_RATING , A.LEAD_STATUS , A.CUST_SETID , D.XLATLONGNAME , BO_ID_PARTNER , ROLE_TYPE_ID_PART , BO_ID_PART_CONT , ROLE_TYPE_ID_PARTC , %subrec(RB_AUDIT_SBR,a) FROM PS_RSF_LEAD A , PSXLATITEM D WHERE A.RC_PROSPECT_SW = 'N' AND D.FIELDVALUE = A.LEAD_STATUS AND D.FIELDNAME = 'LEAD_STATUS' AND D.EFF_STATUS = 'A' AND D.EFFDT <= %CurrentDateIn |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
2 | ROLE_TYPE_ID_CUST | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the customer |
3 | BO_ID_CONTACT | Number(31,0) | DECIMAL(31) NOT NULL | This field indicates the Business Object ID for the contact. |
4 | ROLE_TYPE_ID_CNTCT | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the contact |
5 | BO_ID_SITE | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID |
6 | LEAD_ID | Character(15) | VARCHAR2(15) NOT NULL | Used by Sales Force Automation, this field uniquely identifies a Sales Lead. |
7 | DESCR50 | Character(50) | VARCHAR2(50) NOT NULL | Description of length 50 |
8 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: RSF_OPR_DEF_VW.BUSINESS_UNIT Prompt Table: SP_BU_RSF_NONVW |
9 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL |
Person ID
Prompt Table: RSF_USER_BU_VW |
10 | SALES_USER_NAME | Character(50) | VARCHAR2(50) NOT NULL | Sales User Name field |
11 | NAME1 | Character(50) | VARCHAR2(50) NOT NULL | Generic 50 character name field for storing names. |
12 | OPPORTUNITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Opportunity ID |
13 | LEAD_RATING | Character(2) | VARCHAR2(2) NOT NULL |
Used by Sales Force Automation to indicate the value (rating) of a lead, i.e. whether it's a Hot Lead or a Cold Lead.
Prompt Table: RSF_LE_RATE_VW |
14 | LEAD_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
Used by Sales Force Automation to keep the status of a Sales Lead.
AC=Accepted CD=Closed - Duplicate CL=Closed - Won CO=Converted to Opportunity DE=Deferred IM=Imported LO=Closed - Lost NE=New OP=Open RE=Referred RJ=Rejected TB=Turnback WO=Working |
15 | SETID | Character(5) | VARCHAR2(5) NOT NULL | This field is used to store the value of SetID on various setup tables. |
16 | STATUS_DESCR | Character(50) | VARCHAR2(50) NOT NULL | Field used to show the status description. Field used as edit box. |
17 | BO_ID_PARTNER | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID of Partner Company. |
18 | ROLE_TYPE_ID_PART | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the partner |
19 | BO_ID_PART_CONT | Signed Number(32,0) | DECIMAL(31) NOT NULL | This is the business object identifier for the partner contact. |
20 | ROLE_TYPE_ID_PARTC | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the partner contact |
21 | ROW_ADDED_DTTM | DateTime(26) | TIMESTAMP | This is a datetime field for record creation. |
22 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
23 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
24 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
25 | SYNCID | Number(10,0) | DECIMAL(10) NOT NULL | The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle. |
26 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |