getPsoFields
Description
The getPsoFields query retrieves all fields associated with a specific PSO.
Inputs
This query requires the following input:
Credentials: Used to specify the target application from which the data should be retrieved.
PSO Alias: Specifies the PSO for which fields should be retrieved.
Response JSON
The response includes the following information for each field:
The alias of the field.
Whether the field is active.
Creation date.
Filters
You can filter the response based on the following criteria:
Active fields: Retrieve only the fields that are currently active.
Creation date: Filter fields by their exact creation 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 GetPsoFields {
getPsoFields(alias: "usr", first: 2, after: null) {
totalCount
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
edges {
cursor
node {
isActive
alias
createdAt
}
}
}
}Response
{
"data": {
"getPsoFields": {
"totalCount": 88,
"pageInfo": {
"startCursor": "MTU=",
"endCursor": "MTc=",
"hasNextPage": true,
"hasPreviousPage": false
},
"edges": [
{
"cursor": "MTU=",
"node": {
"isActive": true,
"alias": "professional_phone",
"createdAt": "2018-03-22T08:59:33Z"
}
},
{
"cursor": "MTc=",
"node": {
"isActive": true,
"alias": "professional_mobile_phone",
"createdAt": "2018-03-22T08:59:33Z"
}
}
]
}
},
"errors": null
}Last updated

