Original Message:
Sent: 08-04-2025 11:04
From: Jason Mathison
Subject: Filtering in response template
I use the following testing tool. This is not owned or managed by Genesys so I wouldn't use it for anything sensitive.
https://www.javainuse.com/jsonpath
With that I think that this JSONPath does what you want:
$..[?(@.type=='name')].detail
The issue with your jsonpath was that it was trying to find a "name" entry directly under the information object, however the name is actually two levels deep. Switching to .. will let it search through everything, although depending on what you ware working with it could possibly return unwanted results from elsewhere in the response.
------------------------------
--Jason
Original Message:
Sent: 08-04-2025 04:40
From: Luke Mitchell
Subject: Filtering in response template
Thanks both,
I have ended up pulling all the information into Architect and then manipulating it
------------------------------
Luke Mitchell
Genesys Practice Manager
Connect
https://weconnect.tech
Original Message:
Sent: 08-04-2025 02:29
From: Christoph Domaschke
Subject: Filtering in response template
Hi Luke,
is there an error as response and if so, what is the error message?
Best regards
Christoph
------------------------------
Christoph Domaschke
Leiter Service Center (Cronbank)
Original Message:
Sent: 08-01-2025 10:03
From: Luke Mitchell
Subject: Filtering in response template
Hi,
I am having trouble applying filters in a response template.
Example JSON response is:
{
"information": {
"people": {
"detail": "Jane",
"type": "name"
},
"Annual Leave": {
"detail": "Joe",
"type": "name"
},
"Bank Holiday": {
"detail": "abc@abc.com",
"type": "email"
}
}
}
And am trying to get all of the detail objects where the type objects meet name.
I am using the JSON path: $.information[?(@.type=='name')].detail which works in test tools but when configuring in the data action no data is populated.
Am expecting something like:
Thanks Luke
#DataActions
------------------------------
Luke Mitchell
Genesys Practice Manager
Connect
https://weconnect.tech
------------------------------