Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
4404 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Can queryEntity be used to query nested CDTs...
meharig
over 9 years ago
Can queryEntity be used to query nested CDTs...
OriginalPostID-131865
OriginalPostID-131865
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 9 years ago
In terms of queryentity here's an example using that same scenario of the Company with Multiple Office Locations.
In this example I looking for company with id 1 and returning all its office locations
a!queryEntity(
entity: cons!COMPANY_ENTITY_TYPE,
query: a!query(
selection: a!querySelection(
columns: {
a!queryColumn(
field: "name"
),
a!queryColumn(
field: "locations"
)
}
),
filter: a!queryFilter(
field: "id",
operator: "=",
value: 1
),
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 1
)
)
).data.locations
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 9 years ago
In terms of queryentity here's an example using that same scenario of the Company with Multiple Office Locations.
In this example I looking for company with id 1 and returning all its office locations
a!queryEntity(
entity: cons!COMPANY_ENTITY_TYPE,
query: a!query(
selection: a!querySelection(
columns: {
a!queryColumn(
field: "name"
),
a!queryColumn(
field: "locations"
)
}
),
filter: a!queryFilter(
field: "id",
operator: "=",
value: 1
),
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 1
)
)
).data.locations
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data