Genesys CTI User Forum > Genesys-related Development

PSDK query/search for Interaction Queues

(1/2) > >>

gstkein:
IWS allows users to search for Agents/Queues/Contacts in order to transfer an interaction.
It finds matches even if the user writes a partial name, like "Tre" will find "Trevor"

in order to find contacts, the query is something like

Type=Request
  Service=Index
  Method=Search
  Parameters=
    [
      Query="TenantId:1 AND (LastName:Tre* OR FirstName:Tre* OR PhoneNumber:Tre* OR EmailAddress:Tre* )"
      MaxResults=50
      tkv.multibytes="false"
      IndexName="contact"
    ]
  UserData=
    [
    ].


For agents it may use wildcards so

CfgPersonQuery query = new CfgPersonQuery();
query.setUserName("Tre*");
Object responseObject = confprotocol.requestMultiple(CfgPerson.class,query);


The question would be how does it find "Interaction Queue" objects?

Kubig:
Interaction Queue is type of "script", so you should use CfgScriptQuery I guess.

gstkein:
CfgScriptQuery Worked perfectly! Thanks Kubig!!!

gstkein:
Would you know if there´s a way to make the query case insensitive?

gstkein:
IWS seems to find the queues in a case insensitive way, and ConfigurationManager has a case insensitive checkbox in the search feature.

I could not find a way though, the API does not have that option apparenlty.

Anyway you´ve helped me a lot, so thank you.

Navigation

[0] Message Index

[#] Next page

Go to full version