Discussion
ING B.V
NL
Last activity: 5 Jan 2026 9:28 EST
Dynamic property type in Pega: Page vs Pagelist depending on data availability
Has anyone implemented the following requirement in Pega?
The accounts property must support two possible structures(Page & Pagelist) based on the source value:
- When account details are available:
accounts should be a Pagelist (Array), where each item represents an account with the following fields:- accountNumber (string)
- holderName (string)
- productName (string)
- balance (page with currency and amount)
Example:
"accounts": [
{
"accountNumber": "ACCNo0001234567",
"holderName": "Trading Ltd.",
"productName": "Current Account",
"balance": {
"currency": "EUR",
"amount": 50000
}
}
]
When account details are not provided:
accounts should be a Page(Object) indicating the reason and disclosure:
- notFilledInReason (string, e.g., "NOT_PRESENT")
- notFilledInDisclosure (string, e.g., "No accounts")
Example:
"accounts": {
"notFilledInReason": "NOT_PRESENT",
"notFilledInDisclosure": "No accounts"
}