PeopleTools Objects Analysis SQL

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Problem:

Need to review all objects for a particular project, including descriptions and status:

Solution:

Review a few SQLs below and related articles on PeopleSoft Wiki. I have created a bunch SQLs for different purposes. Please note the use of where clause, that allows to filter out different objects, like Portal Registry or based on migrations status:

SELECT  
(CASE objecttype
           WHEN 0 THEN 'Record'
           WHEN 1 THEN 'Index'
           WHEN 2 THEN 'Field'
           WHEN 3 THEN 'Field Format'
           WHEN 4 THEN 'Translate Value'
           WHEN 5 THEN 'Pages'
           WHEN 6 THEN 'Menus'
           WHEN 7 THEN 'Components'
           WHEN 8 THEN 'Record PeopleCode'
           WHEN 9 THEN 'Menu PeopleCode'
           WHEN 10 THEN 'Query'
           WHEN 11 THEN 'Tree Structures'
           WHEN 12 THEN 'Trees'
           WHEN 13 THEN 'Access group'
           WHEN 14 THEN 'Color'
           WHEN 15 THEN 'Style'
           WHEN 16 THEN 'N/A'
           WHEN 17 THEN 'Business process'
           WHEN 18 THEN 'Activity'
           WHEN 19 THEN 'Role'
           WHEN 20 THEN 'Process Definition'
           WHEN 21 THEN 'Server Definition'
           WHEN 22 THEN 'Process Type Definition'
           WHEN 23 THEN 'Job Definitions'
           WHEN 24 THEN 'Recurrence Definition'
           WHEN 25 THEN 'Message Catalog'
           WHEN 26 THEN 'Dimension'
           WHEN 27 THEN 'Cube Definitions'
           WHEN 28 THEN 'Cube Instance Definitions'
           WHEN 29 THEN 'Business Interlink'
           WHEN 30 THEN 'SQL'
           WHEN 31 THEN 'File Layout Definition'
           WHEN 32 THEN 'Component Interfaces'
           WHEN 33 THEN 'AE program'
           WHEN 34 THEN 'AE section'
           WHEN 35 THEN 'Message Node'
           WHEN 36 THEN 'Message Channel'
           WHEN 37 THEN 'Message'
           WHEN 38 THEN 'Approval rule set'
           WHEN 39 THEN 'Message PeopleCode'
           WHEN 40 THEN 'Subscription PeopleCode'
           WHEN 41 THEN 'N/A'
           WHEN 42 THEN 'Component Interface PeopleCode'
           WHEN 43 THEN 'AE PeopleCode'
           WHEN 44 THEN 'Page PeopleCode'
           WHEN 45 THEN 'Page Field PeopleCode'
           WHEN 46 THEN 'Component PeopleCode'
           WHEN 47 THEN 'Component Record PeopleCode'
           WHEN 48 THEN 'Component Rec Fld PeopleCode'
           WHEN 49 THEN 'Image'
           WHEN 50 THEN 'Style sheet'
           WHEN 51 THEN 'HTML'
           WHEN 52 THEN 'Not used'
           WHEN 53 THEN 'Permission List'
           WHEN 54 THEN 'Portal Registry Definitions'
           WHEN 55 THEN 'Portal Registry Structures'
           WHEN 56 THEN 'URL Definitions'
           WHEN 57 THEN 'Application Packages'
           WHEN 58 THEN 'Application Package Peoplecode'
           WHEN 59 THEN 'Portal Registry User Homepage'
           WHEN 60 THEN 'Problem Type'
           WHEN 61 THEN 'Archive Templates'
           WHEN 62 THEN 'XSLT'
           WHEN 63 THEN 'Portal Registry User Favorite'
           WHEN 64 THEN 'Mobile Page'
           WHEN 65 THEN 'Relationships'
           WHEN 66 THEN 'Component Interface Property Peoplecode'
           WHEN 67 THEN 'Optimization Models'
           WHEN 68 THEN 'File References'
           WHEN 69 THEN 'File Type Codes'
           WHEN 70 THEN 'Archive Object Definitions'
           WHEN 71 THEN 'Archive Templates (Type 2)'
           WHEN 72 THEN 'Diagnostic Plug In'
           WHEN 73 THEN 'Analytic Model'
          WHEN 75	 THEN 	'Java Portlet User Preference'
          WHEN 76	 THEN 	'WSRP Remote Producer'
          WHEN 77	 THEN 	'WSRP Remote Portlet'
          WHEN 78	 THEN 	'WSRP Cloned Portlet Handle'
          WHEN 79	 THEN 	'Service'
          WHEN 80	 THEN 	'Service Operation'
          WHEN 81	 THEN 	'Service Operation Handler'
          WHEN 82	 THEN 	'Service Operation Version'
          WHEN 83	 THEN 	'Service Operation Routing'
          WHEN 84	 THEN 	'IB Queue'
          WHEN 85	 THEN 	'XMLP Template Definition'
          WHEN 86	 THEN 	'XMLP Report Definition'
          WHEN 87	 THEN 	'XMLP File Definition'
          WHEN 88	 THEN 	'XMLP Data Source Definition'
          WHEN 89	 THEN 	'WSDL'
          WHEN 90	 THEN 	'Message Schema'
          WHEN 91	 THEN 	'Connected Query'
          WHEN 92	 THEN 	'Document'
          WHEN 97	 THEN 	'Essbase Cube Dimension'
          WHEN 98	 THEN 	'Essbase Cube Outline'
          WHEN 99	 THEN 	'Essbase Cube Connection'
          WHEN 100 THEN 	'Essbase Cube Template'           
           ELSE 'UNKNOWN OBJECT TYPE'
        END)
          AS objecttype,
       objectvalue1,
       objectvalue2,
       objectvalue3,
       objectvalue4,
(CASE SOURCESTATUS
 WHEN 1 THEN 'Absent'
WHEN 2 THEN 'Changed'
WHEN 3 THEN 'Unchanged'
WHEN 4 THEN 'Custom Changed'
WHEN 5 THEN 'Custom Unchanged'
 END) SOURCESTATUS,
 (CASE SOURCESTATUS
 WHEN 1 THEN 'Absent'
WHEN 2 THEN 'Changed'
WHEN 3 THEN 'Unchanged'
WHEN 4 THEN 'Custom Changed'
WHEN 5 THEN 'Custom Unchanged'
 END) TARGETSTATUS,
   (CASE UPGRADEACTION
 WHEN 0  THEN 'Copy'  
 WHEN 1  THEN 'Delete'
 WHEN 2  THEN 'None'
 WHEN 3  THEN 'CopyProp'
 ELSE 'UKNOWN ACTION'
 END
 )
 as upgradeaction
  FROM psprojectitem
 WHERE PROJECTNAME = 'YOUR_PROJECT1' 
        AND OBJECTTYPE IN (57,58) AND SOURCESTATUS IN (4,5) and (sourcestatus <> 1 and targetstatus <> 1) 

I really want to know what you think