anon84847021 | 2017-03-21 14:08:30 UTC | #1
Hi,
We are using the Javascript SDK to get members for a queue.
When filtering on skills, only the first skill in the array is used as a filter.
Here is an example:
session.login() .then(function(){ var api = new purecloud.RoutingApi(session); var queueId = "5328391f-2d3d-459e-96da-ae88743a4a82"; var pageSize = ""; var pageNumber = ""; var sortBy = ""; var expand = []; var joined = true; var name = ""; var profileSkills = []; var skills = ["IPG - Blending", "Assistance"]; var languages = []; var routingStatus = []; var presence = []; api.getQueuesQueueIdUsers(queueId, pageSize, pageNumber, sortBy, expand, joined, name, profileSkills, skills, languages, routingStatus, presence) .then(function(result){ console.log(result); }) .catch(function(error){ console.log(error); }); });
Using the platform API with Postman is working fine:
GET /api/v2/routing/queues/5328391f-2d3d-459e-96da-ae88743a4a82/users?skills=Assistance,Automobile HTTP/1.1 Host: api.mypurecloud.ie Authorization: bearer XXXX Content-Type: application/json Cache-Control: no-cache Postman-Token: XXXX
Seems like a bug in the Javascript SDK, could you confirm?
Thanks for your help.
tim.smith | 2017-03-21 15:09:23 UTC | #2
Could you provide correlation IDs for working and non working requests?
anon84847021 | 2017-03-21 17:47:36 UTC | #3
Working correlation ID: 9a057c4a-2eee-45ef-97b7-c0eae7714017 Non working correlation ID: b95afdab-a238-441b-82a5-48cc42301c00
Thanks for your support.
tim.smith | 2017-03-22 15:48:12 UTC | #4
I've logged AS-869 for this issue. It doesn't appear to be related to the SDK.
Szlaski_Daniel | 2017-03-22 16:41:39 UTC | #5
Hi. I've got similar issue with routingStatus. It doesn't work properly when I put there more than 1 value.
system | 2017-08-28 19:33:11 UTC | #6
This post was migrated from the old Developer Forum.
ref: 1078