Legacy Dev Forum Posts

 View Only

Sign Up

Can we use metrics in UserAggregateQueryPredicate filter for user aggregate query?

  • 1.  Can we use metrics in UserAggregateQueryPredicate filter for user aggregate query?

    Posted 06-05-2025 19:08

    RatnaSagarKolluri | 2024-03-29 07:23:10 UTC | #1

    I have a requirement to generate a report for all users in an organization for a day's interval about their presence and status.

    I am checking /api/v2/analytics/users/aggregates/query api, and I am looking for a way to get details of all the users available without specifying the userIds individually.

    and since filter is mandatory apart from dimension, I see an option to filter with metric as well, but the syntax provided in API Explorer is not working for metric type,

    -> for metric, the request is expecting metric value to be present, but metric is not present in definition in api explorer ( so I tried to add an attribute "metric" but still I got error saying metric value should be not null )

    So, can we give metric as type in UserAggregateQueryPredicate, if so what should be the syntax of the UserAggregateQueryPredicate ?

    Thanks.


    system | 2024-04-28 07:23:14 UTC | #2

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 25473