Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: Naveen Kancharla on June 17, 2016, 05:41:05 AM

Title: how to retreive workbin interaction
Post by: Naveen Kancharla on June 17, 2016, 05:41:05 AM
from the below code i can retrieve workbin but unable to retrieve interaction in it.
          CfgScriptQuery csq = new CfgScriptQuery();
            csq.ScriptType = CfgScriptType.CFGInteractionWorkBin;
            ICollection<CfgScript> cs = confservice.RetrieveMultipleObjects<CfgScript>(csq);
kindly suggest some psdk with sample example.
Title: Re: how to retreive workbin interaction
Post by: Kubig on June 17, 2016, 11:59:40 AM
Your code just retreieve the configuration objects, but not work with UCS/IXN at all.
Title: Re: how to retreive workbin interaction
Post by: Gabi on July 19, 2016, 04:07:21 PM
I think what you're looking for is RequestPull (com.genesyslab.platform.openmedia.protocol.interactionservice.requests.interactionmanagement.RequestPull).

Here's an example of how to use it:

[code]
RequestPull req = RequestPull.create();
KeyValueCollection pullParameters = new KeyValueCollection();
pullParameters.addString("InteractionId", interactionId);
req.setPullParameters(pullParameters);
req.setViewId("_system_");
Message ret = interactionServerProtocol.request(req);[/code]