Using cast() to array of local variables

Hi,

Below is the code which I used from Appian exercise, which should return all the 3 data from the data store stored in local variable but it is returning on 1 data

a!localVariables(
local!queryResults:
a!queryEntity(
entity: cons!ADV_DSE_ADDRESS,
query: a!query(
paginginfo: a!pagingInfo(1,-1),
logicalexpression: a!queryLogicalExpression(
operator: "AND",
ignorefilterswithemptyvalues: true(),
filters: a!queryFilter(
field: "addressId",
operator: "in",
value: ri!addressId
)
)
)
).data,
cast(
typeof('type!{urn:com:appian:types:ADV}ADV_address'()),
local!queryResults)
)

Expected: It should return all the data in the local variable.

Please guide what changes to be done in the code to get all data that is stored in local variable

  Discussion posts and replies are publicly visible