scm_pa | 2021-07-27 20:29:02 UTC | #1
I'm using the WFM API to pull some agent schedules and in the result I see the following for the activity code:
The highlighted activity code is shown as "3" but when I pull the activities via GetWorkforcemanagementBusinessunitActivitycodes() the activity codes are GUIDs. I trying to figure out how to correlate the two so that I can get the actual activity the agent is scheduled for.
Thank you.
Behymer_Joe | 2021-07-27 21:39:51 UTC | #2
Hello.
Default activity codes use short integer values as their IDs to save space when they are repeated thousands of times in queries like this. ActivityCodeID=3 is a valid value (Meeting), which you can see if you do a GET on the businessunits/activityCodes route.
This:
GET api/v2/workforcemanagement/businessunits/{buid}/activitycodes
Returns:
entities{
0: {id: "0", name: "", active: true, defaultCode: true, category: "OnQueueWork", lengthInMinutes: 120,…}
1: {id: "1", name: "", active: true, defaultCode: true, category: "Break", lengthInMinutes: 15,…}
2: {id: "2", name: "", active: true, defaultCode: true, category: "Meal", lengthInMinutes: 30,…}
3: {id: "b6ef4148-de99-4830-98d6-de3e661c3085", name: "Custom Code", defaultCode: false,…}
4: {id: "3", name: "", active: true, defaultCode: true, category: "Meeting", lengthInMinutes: 30,…}
}
So we can see that id=3 is a Meeting. Hope this helps.
scm_pa | 2021-07-29 11:29:30 UTC | #3
Hi Joe,
That does help. Thank you. Apparently the schedule I pulled was only using the default activities. When I looked at the details of the GET you posted I saw what you are talking about.
Regards
system | 2021-08-29 11:29:33 UTC | #4
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: 11596