Richard_Sellwood | 2021-11-15 04:02:54 UTC | #1
Hi.
I'm using the /api/v2/workforcemanagement/adherence/historical API to pull scheduled and actual Activity data. I've just noticed that this API doesn't return actual Activity Code data, although it does return scheduled Activity Category, actual Activity Category, as well as scheduled Activity Code :
From the documentation: "actuals": [
- {*
- "actualActivityCategory": "",*
- "startOffsetSeconds": 0,*
- "endOffsetSeconds": 0*
- }*
Would anyone know where actual Activity Code data is available from?
Thanks
Eos_Rios | 2021-11-15 19:31:06 UTC | #2
/api/v2/analytics/users/aggregates/query or / api/v2/analytics/users/details/query
depending on your needs.
Richard_Sellwood | 2021-11-15 19:43:44 UTC | #3
Hi Eos_Rios Thanks for your reply. My experience with theses is that they return data at the system presence or organization presence level (which I think maps to Activity Category), not at the lower Activity Code level.
Cheers
Dan_Hoffman | 2021-11-15 19:49:35 UTC | #4
Hey Richard, As it stands today there is no such thing as an actual Activity Code. This is because there can be multiple Activity Codes configured with the same Activity Category. The actual Activity Category is determined by the System Presence, so one System Presence can end up matching multiple Activity Codes. So it is not possible to have one single actual Activity Code. If you need to find all matching Activity Codes, you could lookup Activity Codes using /api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes and then use the actual Activity Category from the historical adherence response to find all matching active Activity Codes.
Richard_Sellwood | 2021-11-16 00:51:29 UTC | #5
Hi @Dan_Hoffman
Thanks for the explanation. This area of the relationships between System Presence, Org Presence, Routing Status, Activity Categories and Activity Codes is quite confusing. Is there a document somewhere that explains these relationships?
Thanks Richard
Langsford_Jay | 2021-11-16 12:44:16 UTC | #6
Resource Center has several articles that may help. The last one has an expandable section on presence to activity category mapping.
https://help.mypurecloud.com/articles/about-status-presence-and-activity-indicators/
https://help.mypurecloud.com/articles/real-time-adherence-overview/
Richard_Sellwood | 2021-11-16 19:44:15 UTC | #7
Thanks @Langsford_Jay!
system | 2021-12-17 19:44:18 UTC | #8
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: 12646