In Metric API, filter on segmentable field with “false” value gives result for both true and false value. | Community
Skip to main content
Level 2
Sep 25, 2024 12:19 PM UTC
Question

In Metric API, filter on segmentable field with “false” value gives result for both true and false value.

When we are applying filter on Metric API (https://adobedocs.github.io/analytics-2.0-apis/#/Metrics/getMetrics) for "segmentable" field with “false” value, it is giving records having both true and false value. The filter is not working properly.

 

When we apply true value:

 

When we apply false value:

 

Could you please share details regarding why it is working like this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SSampsa
Level 4
Oct 3, 2024 7:52 AM UTC

It may seem counter intuitive, but this is how the Github page actually also shows it in the responses, which I found odd. After looking at this for a bit, this is my hypothesis: When you set "segmentable" filter on, it will only return items that match that. When it filter is left as default or set to false (which is the same), it will not filter at all instead of doing what you expect.

This to me looks the way it works, and if so, it a bit misleading.

Translate