PeopleTools PsoftQL - Examples
PsoftQL Examples for PeopleSoft PeopleTools Tables
Categories:
In this section we will show detailed PsoftQL examples of how to extract PeopleTools information using SWS PsoftQL Syntax.
Users and Their Roles
This example shows how to pull PSOPRDEFN and PSROLEUSER information and join them together to get a list of users and their roles. We also exclude some fields that are not needed. Additionally, we include the descriptions for the LANGUAGE_CD and CURRENCY_CD fields.
{
"isDebugMode": false,
"includeFieldTypes": false,
"includeAllDescriptions": false,
"includeKeyFieldIndicators": false,
"includeAllFieldLabels": false,
"rowLimit": 10,
"pageNumber": 1,
"records": [
{
"recordName": "PSOPRDEFN",
"includeDescriptionsFor": ["LANGUAGE_CD", "CURRENCY_CD"],
"excludeFields": ["VERSION", "EXPENT", "OPERPSWD", "PTOPERPSWDV2", "OPERPSWDSALT", "ENCRYPTED"],
"criteriaFields": [
]
},
{
"recordName": "PSROLEUSER",
"parentRecordName": "PSOPRDEFN",
"doNotAutoJoinToParent": true,
"joinFields": [
{"parentField": "OPRID", "childField": "ROLEUSER"}
],
"excludeFields": ["ROLEUSER"]
}
]
}
PeopleSoft Record Definitions
Export PeopleSoft Record Definitions and their fields. This example shows how to pull PSRECDEFN, PSRECFIELDDB, and PSDBFIELD information and join them together to get a list of record definitions and their fields.
{
"isDebugMode": false,
"includeFieldTypes": false,
"includeAllDescriptions": true,
"includeKeyFieldIndicators": false,
"includeAllFieldLabels": false,
"rowLimit": 2,
"records": [
{
"recordName": "PSRECDEFN",
"includeDescriptionsFor": []
},
{
"recordName": "PSRECFIELDDB",
"parentRecordName": "PSRECDEFN"
},
{
"recordName": "PSDBFIELD",
"parentRecordName": "PSRECFIELDDB"
}
]
}