getPsoTypes
Description
The getPsoTypes query retrieves all PSO types available in your application.
Inputs
This query requires the following input:
Credentials: Used to specify the target application from which the data should be retrieved.
Response JSON
The response includes the following information for each PSO:
The alias of the PSO.
Whether the PSO is active.
Whether the PSO is required by the system.
Creation date.
Last update date.
Filters
You can filter the response based on the following criteria:
Active PSOs: Retrieve only the PSOs that are currently active.
System-required PSOs: Retrieve only the PSOs that are mandatory for the system.
Creation date: Filter PSOs by their exact creation date.
Modification date: Filter PSOs by their exact modification date.
Note
Currently, date filters work only with an exact date value. An enhancement is in progress to allow filtering by a date range.
Example
Query
query GetPsoTypes {
getPsoTypes(first: 2) {
totalCount
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
alias
isActive
systemRequired
createdAt
updatedAt
}
}
}
}Response
{
"data": {
"getPsoTypes": {
"totalCount": 24,
"pageInfo": {
"startCursor": "MQ==",
"endCursor": "Mg==",
"hasNextPage": true,
"hasPreviousPage": false
},
"edges": [
{
"cursor": "MQ==",
"node": {
"alias": "usr",
"isActive": true,
"systemRequired": true,
"createdAt": "2019-03-01T10:00:54Z",
"updatedAt": "2019-03-01T10:00:54Z"
}
},
{
"cursor": "Mg==",
"node": {
"alias": "mdl",
"isActive": true,
"systemRequired": true,
"createdAt": "2019-03-01T10:00:55Z",
"updatedAt": "2019-03-01T10:00:55Z"
}
}
]
}
},
"errors": null
}Last updated

