RSF_LE_P_TM_VW(SQL View) |
Index Back |
---|---|
Leads as Partner OwnerThis view is used as dataset to grant access to those leads where the Partner user is the primary Partner contact for the lead. The primary Partner Contact is on RSF_LEAD record. |
SELECT A.LEAD_ID , A.DESCR50 , A.BUSINESS_UNIT , A.BO_ID_PARTNER , D.PERSON_ID , %subrec(RB_AUDIT_SBR, A) FROM PS_RSF_LEAD A , PS_RSF_LE_SLSREP B , PS_OPR_DEF_TBL_RB C , PS_RB_OPRALIAS_VW D , PS_RD_PERSON E WHERE A.LEAD_ID = B.LEAD_ID AND B.BO_ID_PARTNER = C.BO_ID_CUST AND C.OPRID = D.OPRID AND C.REL_TYPE_ID IN (46, 47) AND D.PERSON_ID = E.PERSON_ID AND B.PERSON_ID = E.PERSON_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | LEAD_ID | Character(15) | VARCHAR2(15) NOT NULL | Used by Sales Force Automation, this field uniquely identifies a Sales Lead. |
2 | DESCR50 | Character(50) | VARCHAR2(50) NOT NULL | Description of length 50 |
3 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
4 | BO_ID_PARTNER | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID of Partner Company. |
5 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL | Person ID |
6 | ROW_ADDED_DTTM | DateTime(26) | TIMESTAMP | This is a datetime field for record creation. |
7 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
8 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
9 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
10 | 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. |
11 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |