Hello Team,
We are using this API /api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId} to get the activtyCodes. We found for the default activityCodes like Break, Unavailable etc., we can see the name displayed in the Genesys UI where as we don't have the name value in the API results. Please find the example below,
Developer tools results:
{
"id": "7",
"name": "",
"active": true,
"defaultCode": true,
"category": "Unavailable",
"lengthInMinutes": 60,
"countsAsPaidTime": false,
"countsAsWorkTime": false,
"countsTowardShrinkage": true,
"plannedShrinkage": true,
"interruptible": false,
"secondaryPresences": [],
"metadata": {
"version": 2,
"modifiedBy": {
"id": "00000",
"selfUri": "/api/v2/users/000"
},
"dateModified": "2022-06-07T09:28:01.981Z"
},
"selfUri": "/api/v2/workforcemanagement/businessunits/000/activitycodes/7"
}
Is the API we use to get the activtyCodes is correct? If Yes, why in the API we are unable to get the activity Name? Could you please help us to get the right activityCode name for the default ones? We are facing this only for the default activityCodes.
Regards,
Punitha