Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: JTL on April 18, 2013, 11:56:31 AM
-
I've inherited some 99% completed Agent Scripts, used in an Inbound environment.
However, I am not seeing the reporting activity which I expect to see (attached data written to ICON and then into INFOMART).
I can see KVPs in messages in the log files, so the output from the Script is sending something back to SIP Server, but have narrowed down the issue to the way in which the API call in the Agent Script is configured.
On the JSP tab, I have:
com.genesyslab.ail.AilFactory factory = com.genesyslab.ail.AilLoader.getAilFactory();
com.genesyslab.ail.Dn dn = factory.getDn(dnId);
com.genesyslab.ail.Interaction ixn = factory.getInteraction(interactionId);
if(ixn != null) {
java.util.Hashtable map = new java.util.Hashtable();
map.put("ValueA",A);
map.put("ValueB",B);
map.put("ValueC",C);
map.put("ValueD",D);
map.put("ValueE",E);
map.put("AttributeConnectionID",ixn.getTConnectionId());
map.put("AttributeConnID",ixn.getTConnectionId());
try{
dn.sendUserEvent(map);
}catch(com.genesyslab.ail.exception.RequestFailedException exp) {}
}
So it is using the sendUserEvent and the AttributeConnID is set.
Would this work better if it was using be RequestUpdateUserData or RequestAttachuserData instead? Bearing in mind this could, in theory, happen after the call has ended?
If it should be using either of those, what change do I need to make to the JSP?
If using sendUserEvent is correct, and the AttributeConnID is set, why is the data not being attached?
-
I think that the sendUserEvent is not provide you with update KVP, but you can send custom Event via this. I would recommend you to use RequestUpdateUserData event instead sendUserEvent.
If you try to update attach data on interaction which currently does not exist, you'll get error message "Invalid ConnectionID", I guess.
-
Thanks Kubig - I will have a look at the logs and see what order the events are in.
Do you happen to know what the correct syntax is, or what documentation I can read - as this is something I have inherited as "not working", and although I think I've diagnosed where the issue is, I am not familiar enough with the AIL to write these commands from scratch!
-
Hmmmmmm...
is it 'setAttachedData' - and simply replace the 'sendUserEvent' command with that instead? :)