Genesys CTI User Forum > Genesys-related Development

Is it possible to retrieve GSW_RECORD_HANDLE for all retrieved calls?

<< < (2/2)

abudwill:
After more searching and reading I think I answered my own question on how to send requests:

[code]
OutboundDesktopFactory factory = new OutboundDesktopFactory();
Endpoint tserverEndpoint = new Endpoint("Server", 3000);
TServerProtocol protocol = new TServerProtocol(tserverEndpoint);

protocol.setClientName("OCSTest");
protocol.open();

RequestRecordCancel requestRecordCancel = new RequestRecordCancel();

requestRecordCancel.setApplicationId(appId);
requestRecordCancel.setCallingList("callingList");
requestRecordCancel.setCampaignName("campaign");
requestRecordCancel.setPhone("5555555555");
CommonProperties userEvent = CommonProperties.create();
userEvent.setUserData(factory.marshal(requestRecordCancel));

RequestDistributeUserEvent request = RequestDistributeUserEvent.create();

request.setUserEvent(userEvent);
protocol.send(request);
Thread.sleep(2000);
protocol.close();
[/code]

If I wanted to cancel records in a utility I create (rather than from an agent desktop perspective), it sounds like the Communications DN API is a better fit for me.

cavagnaro:
Yes, you got it. CommDN is the chosen one

Navigation

[0] Message Index

[*] Previous page

Go to full version