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
September 25, 2024
Question

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

  • September 25, 2024
  • 1 reply
  • 503 views

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
October 3, 2024

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.