Hi, We have list of entities fetched from a!queryEntity() part of Rule: rul

Hi,
We have list of entities fetched from a!queryEntity() part of Rule: rule!CP_getRequiredDocsByBC. This entity has nested CDT(Entity). When we add, new record into the list, nested CDT from newly added record is treated as Text and we get following error.
Strangely, when we have same CDT list created on the fly see, commented code. It works fine.

ERROR: Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error at function a!formLayout [line 45]: Invalid index: Cannot index property 'BenefitType' of type Text into type List of Variant

Code:

load(
local!docs: rule!CP_getRequiredDocsByBC(
"963"
),
/*local!docs: {type!CP_RequiredDocuments(
ID: 5,
BenefitType: type!CP_BenefitType(
ID: 55
)
)
},*/a!formLayout(
label: "Lorem Ipsum",
instructions: "Lorem Ipsum",
firstColumnContents: {
a!textField(
label: "Lorem Ipsum",...

OriginalPostID-153148

OriginalPostID-153148

  Discussion posts and replies are publicly visible