1115
January 28, 2021, 9:13am
1
【API】
/api/v2/analytics/users/details/query
【Request Body】
{
interval: <7 days before>/
userFilters: [
{
type: "or",
predicates: [
{
dimension: "userId",
value:
}
]
}
],
paging: {
pageSize: 1,
pageNumber: 1
},
order:"desc"
}
【One Response Body (userDetails)】
[
{
"userId”:””,
”primaryPresence": [
{
"startTime": "2021-01-18T03:37:15.410Z",
"systemPresence": "OFFLINE",
"organizationPresenceId": "ccf3c10a-aa2c-4845-8e8d-f59fa48c58e5"
}
]
}
]
【Another Response Body (userDetails)】
[
{
"userId”:””,
”routingStatus": [
{
"startTime": "2021-01-18T02:45:17.607Z",
"routingStatus": "NOT_RESPONDING"
}
]
}
]
【Question】
What are the conditions for acquiring data that does not include primaryPresence?
【Remarks】
When I received the response body, I checked the data only for userDetails, so the only data I can present is userDetails.
Hi,
Applying these presence filters will remove primaryPresence:
{
"interval": "2021-01-22T00:00:00.000Z/2021-01-29T00:00:00.000Z",
"order": "asc",
"paging": {
"pageSize": 25,
"pageNumber": 1
},
"presenceFilters": [
{
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "organizationPresenceId",
"operator": "notExists",
"value": null
},
{
"type": "dimension",
"dimension": "systemPresence",
"operator": "notExists",
"value": null
}
]
}
]
}
FYI, the analytics query builder is useful for building these analytics queries.
1115
February 2, 2021, 6:10am
3
Thank you for your reply.
I don't use precenseFilters when I request, so it doesn't meet this requirement.
Please let me know if there are other conditions that make it impossible to obtain primaryPresence.
Are you saying you don't want the response data to contain presence information? Applying filters is the only way to constrain the data in the response; you cannot alter the format of the response.
system
Closed
March 6, 2021, 5:10pm
5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.