Genesys CTI User Forum > Genesys-related Development

[SOLVED] Action code for NotReady state

<< < (2/2)

Kubig:
As a developer/programmer you have to identify how to implement some logic from DLL which you referencing in your project. This implementation depends on layer that you are using for develop your app (Platform,Enterprise,Interaction,..) . I think,if you are able to develop for example login process and further,you must be able to develop this simple process.

luchosrock:
I could successfully send the reason code and monitor it through the CCPulse, setting the reasons in requestAgentNotReady object as a KeyValueCollection of Strings.
[code]
        Dim reqAgentNotReady As RequestAgentNotReady
        reqAgentNotReady = RequestAgentNotReady.Create()
        reqAgentNotReady.ThisDN = DNValue
        Dim reqReasons As New KeyValueCollection
        reqReasons.Add(ReasonCodeDescription, reasonCodeKey)
        reqAgentNotReady.Reasons = reqReasons
[/code]

Now for the second question, how could i retrieve the full list of Action codes present in the configuration manager? I already searched for this in the forums with no success.

Ps: Kubig, i'm currently using Platform SDK for .Net.

Kubig:
You have to using CfgQuery which allows to you retrieve required objects from configuration

luchosrock:
I could retrieve successfully the action codes list for the notReady state, using this:
[code]
Dim queryActionCodes As New CfgActionCodeQuery
Dim ActionCodes As ICollection(Of CfgActionCode)

queryActionCodes.CodeType = CfgActionCodeType.CFGNotReady
ActionCodes = IconfServerConf.RetrieveMultipleObjects(Of CfgActionCode)(queryActionCodes)
[/code]
but it only works for Synchronous, so i can't use the WarmStandbyUri :/

Navigation

[0] Message Index

[*] Previous page

Go to full version