Agent Interaction Request

hi, can any one help me out with sdk for retrieving all the list of interaction which is handled by a particular agent from ucs or interaction server.

Just retrieve all interaction where the OwnerId is equal to DBID of requested agent.