Hi everyone,
I’m working on a search query to analyze account activity, specifically focusing on a designated source and particular attribute requests.
Objective
I want to retrieve all account activity for the source “SOURCE_EXAMPLE” where at least one attribute request includes an operation called “Remove” with the value “SPECIFIC_VALUE.”
Current Issue
The following query successfully returns results when there is only one attribute request:
@accountRequests(source.name:"SOURCE_EXAMPLE" AND attributeRequests.op:"Remove" AND attributeRequests.value:"SPECIFIC_VALUE")
However, it fails when the account activity contains an array of attribute requests.
Attempted Solution
To address this, I tried nesting the query:
@accountRequests(source.name:"SOURCE_EXAMPLE" AND @attributeRequests(op:"Remove" AND value:"SPECIFIC_VALUE"))
Unfortunately, this approach doesn’t produce the desired results; it always returns an empty list. However, when attempting this solution with the POST /v3/search endpoint, I am receiving a 400 Bad Request error, accompanied by the following response body:
{
"detailCode": "400.1.3 Illegal value",
"trackingId": "00a7872f7d184f8ebb6086ade6dd839b",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "Illegal value \"attributeRequests\" for field \"nested keyword\"."
},
{
"locale": "und",
"localeOrigin": "REQUEST",
"text": "Illegal value \"attributeRequests\" for field \"nested keyword\"."
}
],
"causes": []
}
Request for Assistance
What strategies can I implement to ensure that I fetch results when one or more “Remove” operations are present at the attribute request level?
Thank you!
Best regards.