Anyway we used the Genesys Enterprise SDK with IInteractionManager service and adding callback handler function for listening Interaction events.
PlusNet Solutions, S.L.
Original Message:
Sent: 09-05-2023 06:57
From: Ricardo Sosa
Subject: ProxyClientId
Thank you Pete,
we already tried with that one and did not work.
Anyway, eventually we got this thread id by subscribing to the events but this way led no where. If the interaction is not assigned to the agent, it is not working.
Thank you.
------------------------------
Ricardo Sosa
PlusNet Solutions, S.L.
Original Message:
Sent: 09-05-2023 04:25
From: Pete Hoyle
Subject: ProxyClientId
Hi Ricardo,
Instead of using:
protocol.ProxyId
Try using:
protocol.ServerContext.ProxyId
.
------------------------------
Pete Hoyle
Genesys - Employees
Original Message:
Sent: 08-28-2023 09:09
From: Ricardo Sosa
Subject: ProxyClientId
More information.
To get the InteractionServerProtocol we are doing this (the code is not complete, but to give you an idea of how are we trying to get this):
IAgent myAgent = container.Resolve<IAgent>();IEnterpriseServiceProvider enterpriseService = myAgent.EntrepriseService;channelService = enterpriseService.Resolve<IChannelService>("channelService");...InteractionServerProtocol protocol = null;channelList = channelService.ListChannels();foreach (Genesyslab.Enterprise.Model.Channel.IClientChannel chn in channelList) { if (chn.Protocol is Genesyslab.Platform.OpenMedia.Protocols.InteractionServerProtocol) { protocol = (chn.Protocol as InteractionServerProtocol); } } ...try { WorkbinInfo oWorkbinInfo = WorkbinInfo.Create("XXX.workbin_in_progress"); oWorkbinInfo.WorkbinAgentId = MyContainer.GetInstance().agent.UserName; ReasonInfo oReasonInfo = ReasonInfo.Create("No Reason", ""); RequestPlaceInWorkbin oWorkbinRequest = RequestPlaceInWorkbin.Create(interactionId, oWorkbinInfo, oReasonInfo); oWorkbinRequest.ProxyClientId = protocol.ProxyId; oWorkbinRequest.Reason.ReasonSystemName = "No Reason"; IMessage res = protocol.Request(oWorkbinRequest); } catch (Exception ex) { log.Error(ex.Message, ex); return -1; }
In the variable res we have this:
'EventError' ('126')message attributes:attr_ref_id [int] = 39attr_error_code [int] = 3attr_error_desc [str] = "Unknown client id in request from proxy"
------------------------------
Ricardo Sosa
PlusNet Solutions, S.L.
Original Message:
Sent: 08-28-2023 07:23
From: Ricardo Sosa
Subject: ProxyClientId
Hello,
We are developing a WDE customization adding a button that puts an email in a workbin using RequestPlaceInWorkbin.
To create this request we need to fill the attribute ProxyClientId. Does anyone know where to find this value?
Thanks in advance.
#Implementation
------------------------------
Ricardo Sosa
PlusNet Solutions, S.L.
------------------------------