TimoV | 2022-03-18 12:14:03 UTC | #1
Hi,
Has anyone managed to get multiple filters working with translationMap JSONPath expressions? Is this even supposed to be supported?
What I would like to achieve is to get "agent" and "acd" participants out of a conversation detail object. Tried with the following, but it seems that logical OR/AND breaks the parser, and no results will be returned:
{ "translationMap": { "Entities": "$.participants[?(@.purpose=='agent' || @.purpose=='acd' )]" }, "translationMapDefaults": { "Entities": "[]" }, "successTemplate": "{\"participants\": ${Entities}}" }
Jason_Mathison | 2022-03-30 14:05:30 UTC | #2
Can you give an example of the JSON that you are attempting to filter? As far as I know AND and OR filters should be possible.
system | 2022-04-30 14:06:07 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 13967