When you need to apply multiple filters in a single a!query() call, you use the logicalExpression parameter. This allows you to define complex filter logic (e.g., using AND/OR combinations) between multiple conditions.
Here's a quick example:
a!query(
logicalExpression: a!queryLogicalExpression(
operator: "AND",
filters: {
a!queryFilter(field: "status", operator: "=", value: "Active"),
a!queryFilter(field: "region", operator: "=", value: "North")
}
)
)
The answer is B. Just a bit of code to prove that it should be LogicalExpression:
a!queryEntity(
entity: cons!EntityName,
query: a!query(
logicalExpression: a!queryLogicalExpression(
operator: "AND",
filters: {
a!queryFilter(
field: "configurationItemId",
operator: "=",
value: ri!configurationItemId
),
a!queryFilter(
field: "accessLevelId",
operator: "=",
value: ri!accessLevelId
),
etc.
The FILTER answer is good if you want to filter on the output of the query, but in this case that's not the question.
Answer is B
This section is not available anymore. Please use the main Exam Page.ACD100 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
PrettyA
1 week agoXfrankX
6 months agoark143
8 months, 3 weeks agoKapilR
11 months, 2 weeks ago