How to get AgentID(Statistics notready)

i can get to Agent ID as Ready.

1.AgentDN = MultiSkill(Server, Skill)
2.AgentID = SelectDN(Queue,‘’,‘StatAgentLoading’,AgentDN)
3.KVListGetStringValue(AgentID,‘agent’)

i want to get Agent ID when Statistics change into Ready from NotReady. too

Why is it that I can’t acquire it when Agent’s Statistics change into the Ready from NotReady or Afterwork??? ??? ???

or Can i use to Udata[RTargetAgentSelected]?

It is router and its major task return/find agent ready to process the interaction - which among other things assumes that agent is in ready state.

You can use statistical functions like TargetState to get current status of agent - ready, on call, ACW, etc. if it is what you want.

And if it is about tracking exact moments when agent state is changed - knowing usecase what it needed for might help.

i I’ve solved it
but, i cant solve as recall..! ???

i used Udata[KVPname]


Is means i can’t get to Agent ID?

Can I get to Agent ID ready state only?

I can get to Agent ID as ready state at IRD 8.1

but, if Agent state is notready, Call is waiting call.
and, i change into ready as Agent State.

Agent id is null…

1.AgentDN = MultiSkill(Server, Skill)
2.AgentID = SelectDN(Queue,‘’,‘StatAgentLoading’,AgentDN)
3.KVListGetStringValue(AgentID,‘agent’)

i think because i geted to SelectDN(Queue,‘’,‘StatAgentLoading’,AgentDN)